Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1092)

Unified Diff: remoting/host/me2me_preference_pane.mm

Issue 10566013: Detect if user closes the pref-pane without disabling Chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unswap lines Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/plugin/daemon_controller_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/me2me_preference_pane.mm
diff --git a/remoting/host/me2me_preference_pane.mm b/remoting/host/me2me_preference_pane.mm
index ac33b13eb329ad3a275c923e5725bf0d183b85ce..c360c4bc8b933933068b3959d9a2debee6a6b2b6 100644
--- a/remoting/host/me2me_preference_pane.mm
+++ b/remoting/host/me2me_preference_pane.mm
@@ -327,8 +327,8 @@ std::string JsonHostConfig::GetSerializedData() const {
[service_status_timer_ invalidate];
[service_status_timer_ release];
service_status_timer_ = nil;
- if (have_new_config_)
- [self notifyPlugin:kUpdateFailedNotificationName];
+
+ [self notifyPlugin:kUpdateFailedNotificationName];
}
- (void)applyConfiguration:(id)sender
@@ -753,8 +753,6 @@ std::string JsonHostConfig::GetSerializedData() const {
NSLog(@"Failed to get path of configuration data.");
return;
}
- if (access(file.c_str(), F_OK) != 0)
- return;
remove(file.c_str());
[self notifyPlugin:kUpdateFailedNotificationName];
« no previous file with comments | « no previous file | remoting/host/plugin/daemon_controller_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698