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

Unified Diff: chrome/browser/extensions/extension_shelf_model.cc

Issue 147026: Fix case where install puts two copies of the extension toolbar on the shelf. (Closed)
Patch Set: Created 11 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_shelf_model.cc
diff --git a/chrome/browser/extensions/extension_shelf_model.cc b/chrome/browser/extensions/extension_shelf_model.cc
index 70013e5dd7236305c0bc559d849e1e8936491d6d..4332b481c667058002513d261bb02116e779ba2f 100644
--- a/chrome/browser/extensions/extension_shelf_model.cc
+++ b/chrome/browser/extensions/extension_shelf_model.cc
@@ -17,8 +17,6 @@
ExtensionShelfModel::ExtensionShelfModel(Browser* browser)
: browser_(browser), ready_(false) {
// Watch extensions loaded and unloaded notifications.
- registrar_.Add(this, NotificationType::EXTENSION_INSTALLED,
- NotificationService::AllSources());
registrar_.Add(this, NotificationType::EXTENSION_UNLOADED,
NotificationService::AllSources());
registrar_.Add(this, NotificationType::EXTENSIONS_LOADED,
@@ -110,12 +108,6 @@ void ExtensionShelfModel::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
switch (type.value) {
- case NotificationType::EXTENSION_INSTALLED:
- if (ready_) {
- AddExtension(Details<Extension>(details).ptr());
- UpdatePrefs();
- }
- break;
case NotificationType::EXTENSIONS_LOADED:
if (ready_)
AddExtensions(Details<ExtensionList>(details).ptr());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698