| 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 2bdebb0c996c202b4c69a5de867df2cf22134a30..7eef1f872375fbdaa5b76da3c53ee7c00a60f5dd 100644
|
| --- a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
|
| +++ b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
|
| @@ -177,7 +177,10 @@ BrowserTabStripController::BrowserTabStripController(Browser* browser,
|
| model_->AddObserver(this);
|
|
|
| local_pref_registrar_.Init(g_browser_process->local_state());
|
| - local_pref_registrar_.Add(prefs::kTabStripLayoutType, this);
|
| + local_pref_registrar_.Add(
|
| + prefs::kTabStripLayoutType,
|
| + base::Bind(&BrowserTabStripController::UpdateLayoutType,
|
| + base::Unretained(this)));
|
| }
|
|
|
| BrowserTabStripController::~BrowserTabStripController() {
|
| @@ -432,17 +435,6 @@ void BrowserTabStripController::TabBlockedStateChanged(WebContents* contents,
|
| SetTabDataAt(contents, model_index);
|
| }
|
|
|
| -////////////////////////////////////////////////////////////////////////////////
|
| -// BrowserTabStripController, content::NotificationObserver implementation:
|
| -
|
| -void BrowserTabStripController::OnPreferenceChanged(
|
| - PrefServiceBase* service,
|
| - const std::string& pref_name) {
|
| - if (pref_name == prefs::kTabStripLayoutType) {
|
| - UpdateLayoutType();
|
| - }
|
| -}
|
| -
|
| void BrowserTabStripController::SetTabRendererDataFromModel(
|
| WebContents* contents,
|
| int model_index,
|
|
|