Index: chrome/browser/extensions/extension_toolbar_model.cc |
=================================================================== |
--- chrome/browser/extensions/extension_toolbar_model.cc (revision 136343) |
+++ chrome/browser/extensions/extension_toolbar_model.cc (working copy) |
@@ -28,7 +28,7 @@ |
registrar_.Add(this, chrome::NOTIFICATION_EXTENSIONS_READY, |
content::Source<Profile>(service_->profile())); |
registrar_.Add( |
- this, chrome::NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED, |
+ this, chrome::NOTIFICATION_EXTENSION_BROWSER_ACTION_PINED_CHANGED, |
content::Source<ExtensionPrefs>(service_->extension_prefs())); |
visible_icon_count_ = prefs_->GetInteger(prefs::kExtensionToolbarSize); |
@@ -113,14 +113,14 @@ |
if (toolitems_[i].get() == extension) |
return; // Already exists. |
} |
- if (service_->GetBrowserActionVisibility(extension)) |
+ if (service_->extension_prefs()->GetBrowserActionPined(extension)) |
AddExtension(extension); |
} else if (type == chrome::NOTIFICATION_EXTENSION_UNLOADED) { |
RemoveExtension(extension); |
} else if ( |
type == |
- chrome::NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED) { |
- if (service_->GetBrowserActionVisibility(extension)) |
+ chrome::NOTIFICATION_EXTENSION_BROWSER_ACTION_PINED_CHANGED) { |
+ if (service_->extension_prefs()->GetBrowserActionPined(extension)) |
AddExtension(extension); |
else |
RemoveExtension(extension); |
@@ -192,7 +192,7 @@ |
const Extension* extension = *it; |
if (!extension->browser_action()) |
continue; |
- if (!service_->GetBrowserActionVisibility(extension)) |
+ if (!service_->extension_prefs()->GetBrowserActionPined(extension)) |
continue; |
std::vector<std::string>::iterator pos = |