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

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

Issue 204703002: Rename NOTIFICATION_EXTENSION_UNLOADED to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: maybe upload wont do something bizarre this time Created 6 years, 9 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 | Annotate | Revision Log
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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 dict.SetString("id", extension_->id()); 648 dict.SetString("id", extension_->id());
649 reply.SendSuccess(&dict); 649 reply.SendSuccess(&dict);
650 } else { 650 } else {
651 reply.SendError("Extension could not be installed"); 651 reply.SendError("Extension could not be installed");
652 } 652 }
653 delete this; 653 delete this;
654 } 654 }
655 655
656 ExtensionUnloadNotificationObserver::ExtensionUnloadNotificationObserver() 656 ExtensionUnloadNotificationObserver::ExtensionUnloadNotificationObserver()
657 : did_receive_unload_notification_(false) { 657 : did_receive_unload_notification_(false) {
658 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED, 658 registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
659 content::NotificationService::AllSources()); 659 content::NotificationService::AllSources());
660 } 660 }
661 661
662 ExtensionUnloadNotificationObserver::~ExtensionUnloadNotificationObserver() { 662 ExtensionUnloadNotificationObserver::~ExtensionUnloadNotificationObserver() {
663 } 663 }
664 664
665 void ExtensionUnloadNotificationObserver::Observe( 665 void ExtensionUnloadNotificationObserver::Observe(
666 int type, const content::NotificationSource& source, 666 int type, const content::NotificationSource& source,
667 const content::NotificationDetails& details) { 667 const content::NotificationDetails& details) {
668 if (type == chrome::NOTIFICATION_EXTENSION_UNLOADED) { 668 if (type == chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED) {
669 did_receive_unload_notification_ = true; 669 did_receive_unload_notification_ = true;
670 } else { 670 } else {
671 NOTREACHED(); 671 NOTREACHED();
672 } 672 }
673 } 673 }
674 674
675 ExtensionsUpdatedObserver::ExtensionsUpdatedObserver( 675 ExtensionsUpdatedObserver::ExtensionsUpdatedObserver(
676 extensions::ProcessManager* manager, AutomationProvider* automation, 676 extensions::ProcessManager* manager, AutomationProvider* automation,
677 IPC::Message* reply_message) 677 IPC::Message* reply_message)
678 : manager_(manager), automation_(automation->AsWeakPtr()), 678 : manager_(manager), automation_(automation->AsWeakPtr()),
(...skipping 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after
2384 if (automation_.get()) { 2384 if (automation_.get()) {
2385 AutomationJSONReply(automation_.get(), reply_message_.release()) 2385 AutomationJSONReply(automation_.get(), reply_message_.release())
2386 .SendSuccess(NULL); 2386 .SendSuccess(NULL);
2387 } 2387 }
2388 delete this; 2388 delete this;
2389 } 2389 }
2390 } else { 2390 } else {
2391 NOTREACHED(); 2391 NOTREACHED();
2392 } 2392 }
2393 } 2393 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698