diff options
Diffstat (limited to 'chrome/browser/debugger/devtools_window.cc')
-rw-r--r-- | chrome/browser/debugger/devtools_window.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/debugger/devtools_window.cc b/chrome/browser/debugger/devtools_window.cc index 20f7aee..dd24777 100644 --- a/chrome/browser/debugger/devtools_window.cc +++ b/chrome/browser/debugger/devtools_window.cc @@ -91,8 +91,10 @@ DevToolsWindow::DevToolsWindow(Profile* profile, registrar_.Add(this, NotificationType::TAB_CLOSING, Source<NavigationController>(&tab_contents_->controller())); - registrar_.Add(this, NotificationType::BROWSER_THEME_CHANGED, - NotificationService::AllSources()); + registrar_.Add( + this, + NotificationType::BROWSER_THEME_CHANGED, + Source<ThemeService>(ThemeServiceFactory::GetForProfile(profile_))); TabContents* tab = inspected_rvh->delegate()->GetAsTabContents(); if (tab) inspected_tab_ = TabContentsWrapper::GetCurrentWrapperForContents(tab); |