Index: chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc |
diff --git a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc |
index 3f625351a98bc62ca810169ecc91151ea7344256..21c31e9281bc1ae22fa72073e2152bf7678c2287 100644 |
--- a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc |
+++ b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc |
@@ -442,20 +442,11 @@ void BrowserTabStripController::TabBlockedStateChanged(TabContents* contents, |
//////////////////////////////////////////////////////////////////////////////// |
// BrowserTabStripController, content::NotificationObserver implementation: |
-void BrowserTabStripController::Observe(int type, |
- const content::NotificationSource& source, |
- const content::NotificationDetails& details) { |
- switch (type) { |
- case chrome::NOTIFICATION_PREF_CHANGED: |
- if (*content::Details<std::string>(details).ptr() == |
- prefs::kTabStripLayoutType) { |
- UpdateLayoutType(); |
- } |
- break; |
- |
- default: |
- NOTREACHED(); |
- break; |
+void BrowserTabStripController::OnPreferenceChanged( |
+ PrefServiceBase* service, |
+ const std::string& pref_name) { |
+ if (pref_name == prefs::kTabStripLayoutType) { |
+ UpdateLayoutType(); |
} |
} |