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

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: Latest master for cq 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
« no previous file with comments | « no previous file | chrome/browser/background/background_contents_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 int type, 558 int type,
559 const content::NotificationSource& source, 559 const content::NotificationSource& source,
560 const content::NotificationDetails& details) { 560 const content::NotificationDetails& details) {
561 if (!automation_) { 561 if (!automation_) {
562 delete this; 562 delete this;
563 return; 563 return;
564 } 564 }
565 565
566 switch (type) { 566 switch (type) {
567 case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: { 567 case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: {
568 if (id_ == *content::Details<const std::string>(details).ptr()) { 568 if (id_ == content::Details<extensions::Extension>(details).ptr()->id()) {
569 scoped_ptr<DictionaryValue> return_value(new DictionaryValue); 569 scoped_ptr<DictionaryValue> return_value(new DictionaryValue);
570 return_value->SetBoolean("success", true); 570 return_value->SetBoolean("success", true);
571 AutomationJSONReply(automation_, reply_message_.release()) 571 AutomationJSONReply(automation_, reply_message_.release())
572 .SendSuccess(return_value.get()); 572 .SendSuccess(return_value.get());
573 delete this; 573 delete this;
574 return; 574 return;
575 } 575 }
576 break; 576 break;
577 } 577 }
578 578
(...skipping 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after
3151 if (automation_) { 3151 if (automation_) {
3152 AutomationJSONReply(automation_, reply_message_.release()) 3152 AutomationJSONReply(automation_, reply_message_.release())
3153 .SendSuccess(NULL); 3153 .SendSuccess(NULL);
3154 } 3154 }
3155 delete this; 3155 delete this;
3156 } 3156 }
3157 } else { 3157 } else {
3158 NOTREACHED(); 3158 NOTREACHED();
3159 } 3159 }
3160 } 3160 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/background/background_contents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698