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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.cc

Issue 10694056: CPM Extension Uninstall Watching (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/automation/automation_provider_observers.h" 5 #include "chrome/browser/automation/automation_provider_observers.h"
6 6
7 #include <deque> 7 #include <deque>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 int type, 537 int type,
538 const content::NotificationSource& source, 538 const content::NotificationSource& source,
539 const content::NotificationDetails& details) { 539 const content::NotificationDetails& details) {
540 if (!automation_) { 540 if (!automation_) {
541 delete this; 541 delete this;
542 return; 542 return;
543 } 543 }
544 544
545 switch (type) { 545 switch (type) {
546 case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: { 546 case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: {
547 if (id_ == *content::Details<const std::string>(details).ptr()) { 547 if (id_ == content::Details<extensions::Extension>(details).ptr()->id()) {
548 scoped_ptr<DictionaryValue> return_value(new DictionaryValue); 548 scoped_ptr<DictionaryValue> return_value(new DictionaryValue);
549 return_value->SetBoolean("success", true); 549 return_value->SetBoolean("success", true);
550 AutomationJSONReply(automation_, reply_message_.release()) 550 AutomationJSONReply(automation_, reply_message_.release())
551 .SendSuccess(return_value.get()); 551 .SendSuccess(return_value.get());
552 delete this; 552 delete this;
553 return; 553 return;
554 } 554 }
555 break; 555 break;
556 } 556 }
557 557
(...skipping 2536 matching lines...) Expand 10 before | Expand all | Expand 10 after
3094 AutomationJSONReply(automation_, reply_message_.release()) 3094 AutomationJSONReply(automation_, reply_message_.release())
3095 .SendSuccess(NULL); 3095 .SendSuccess(NULL);
3096 } 3096 }
3097 delete this; 3097 delete this;
3098 } 3098 }
3099 } else { 3099 } else {
3100 NOTREACHED(); 3100 NOTREACHED();
3101 } 3101 }
3102 } 3102 }
3103 3103
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698