Commit f7ce0759 authored by jamiewalch@google.com's avatar jamiewalch@google.com

Notify plugin when disabling daemon.

BUG=129059
TEST=Manual

Review URL: https://chromiumcodereview.appspot.com/10411062

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138165 0039d316-1c4b-4281-b951-d872f2087c98
parent ccb8aaca
...@@ -226,12 +226,15 @@ std::string JsonHostConfig::GetSerializedData() const { ...@@ -226,12 +226,15 @@ std::string JsonHostConfig::GetSerializedData() const {
inputData:""]) { inputData:""]) {
LOG(ERROR) << "Failed to run the helper tool"; LOG(ERROR) << "Failed to run the helper tool";
[self showError]; [self showError];
[self notifyPlugin: kUpdateFailedNotificationName];
return; return;
} }
// Stop the launchd job. This cannot easily be done by the helper tool, // Stop the launchd job. This cannot easily be done by the helper tool,
// since the launchd job runs in the current user's context. // since the launchd job runs in the current user's context.
[self sendJobControlMessage:LAUNCH_KEY_STOPJOB]; [self sendJobControlMessage:LAUNCH_KEY_STOPJOB];
[self notifyPlugin: kUpdateSucceededNotificationName];
} }
- (void)onNewConfigFile:(NSNotification*)notification { - (void)onNewConfigFile:(NSNotification*)notification {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment