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

Side by Side Diff: chrome/browser/extensions/install_tracker.cc

Issue 23636002: Fixed how Apps Developer Tools is enabled/disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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 | « chrome/browser/extensions/extension_service.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/extensions/install_tracker.h" 5 #include "chrome/browser/extensions/install_tracker.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/extensions/extension_prefs.h" 9 #include "chrome/browser/extensions/extension_prefs.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 FOR_EACH_OBSERVER(InstallObserver, observers_, 94 FOR_EACH_OBSERVER(InstallObserver, observers_,
95 OnExtensionLoaded(extension)); 95 OnExtensionLoaded(extension));
96 break; 96 break;
97 } 97 }
98 case chrome::NOTIFICATION_EXTENSION_UNLOADED: { 98 case chrome::NOTIFICATION_EXTENSION_UNLOADED: {
99 const content::Details<extensions::UnloadedExtensionInfo>& unload_info( 99 const content::Details<extensions::UnloadedExtensionInfo>& unload_info(
100 details); 100 details);
101 const Extension* extension = unload_info->extension; 101 const Extension* extension = unload_info->extension;
102 FOR_EACH_OBSERVER(InstallObserver, observers_, 102 FOR_EACH_OBSERVER(InstallObserver, observers_,
103 OnExtensionUnloaded(extension)); 103 OnExtensionUnloaded(extension));
104 if (unload_info->reason == extension_misc::UNLOAD_REASON_UNINSTALL)
105 FOR_EACH_OBSERVER(InstallObserver, observers_,
106 OnExtensionUninstalled(extension));
asargent_no_longer_on_chrome 2013/08/30 22:23:00 I think removing this code block is definitely cor
107 break; 104 break;
108 } 105 }
109 case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: { 106 case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: {
110 const Extension* extension = 107 const Extension* extension =
111 content::Details<const Extension>(details).ptr(); 108 content::Details<const Extension>(details).ptr();
112 109
113 FOR_EACH_OBSERVER(InstallObserver, observers_, 110 FOR_EACH_OBSERVER(InstallObserver, observers_,
114 OnExtensionUninstalled(extension)); 111 OnExtensionUninstalled(extension));
115 break; 112 break;
116 } 113 }
(...skipping 11 matching lines...) Expand all
128 default: 125 default:
129 NOTREACHED(); 126 NOTREACHED();
130 } 127 }
131 } 128 }
132 129
133 void InstallTracker::OnAppsReordered() { 130 void InstallTracker::OnAppsReordered() {
134 FOR_EACH_OBSERVER(InstallObserver, observers_, OnAppsReordered()); 131 FOR_EACH_OBSERVER(InstallObserver, observers_, OnAppsReordered());
135 } 132 }
136 133
137 } // namespace extensions 134 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698