| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
: config_dir_(remoting::GetConfigDir()) {}nit: `remoting::` is probably not needed here.
config.Set("host_id", "test_host_id");Consider using the `kHostIdConfigPath` constant here instead of the magic string `\"host_id\"` to stay consistent with the rest of the codebase.
new_config.Set("host_id", "new_host_id");Same here: consider using `kHostIdConfigPath` instead of a string literal.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
nit: `remoting::` is probably not needed here.
Thanks! I found it used in a few other existing locations which I've removed as well.
Consider using the `kHostIdConfigPath` constant here instead of the magic string `\"host_id\"` to stay consistent with the rest of the codebase.
Done
Same here: consider using `kHostIdConfigPath` instead of a string literal.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
7 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: remoting/host/setup/daemon_controller_delegate_win.cc
Insertions: 1, Deletions: 1.
@@ -315,7 +315,7 @@
} // namespace
DaemonControllerDelegateWin::DaemonControllerDelegateWin()
- : config_dir_(remoting::GetConfigDir()) {}
+ : config_dir_(GetConfigDir()) {}
DaemonControllerDelegateWin::DaemonControllerDelegateWin(
const base::FilePath& config_dir)
```
```
The name of the file: remoting/host/setup/daemon_controller_delegate_win_unittest.cc
Insertions: 2, Deletions: 2.
@@ -50,7 +50,7 @@
TEST_F(DaemonControllerDelegateWinTest, GetConfigReturnsUnprivilegedConfig) {
base::DictValue config;
- config.Set("host_id", "test_host_id");
+ config.Set(kHostIdConfigPath, "test_host_id");
WriteUnprivilegedConfig(config);
auto result = delegate_->GetConfig();
@@ -75,7 +75,7 @@
TEST_F(DaemonControllerDelegateWinTest, UpdateConfigFailsWhenNoFullConfig) {
base::DictValue new_config;
- new_config.Set("host_id", "new_host_id");
+ new_config.Set(kHostIdConfigPath, "new_host_id");
bool callback_called = false;
delegate_->UpdateConfig(
```
Refactor DaemonControllerDelegateWin for testing
Refactors to allow injecting a custom configuration directory for
testing purposes. Adds an initial unit test to verify behavior.
This refactoring is needed so we can add unit tests to verify a fix
for a file-related issue.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |