summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/glue
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 19:13:42 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 19:13:42 +0000
commitccb7d64aac531208d66f0531e51f3865afd00445 (patch)
treef4e4eeb77778864ccba89d74a51387473ba98779 /chrome/browser/sync/glue
parentab64614ffbc85b7f0b98f991f89bf49012820531 (diff)
downloadchromium_src-ccb7d64aac531208d66f0531e51f3865afd00445.zip
chromium_src-ccb7d64aac531208d66f0531e51f3865afd00445.tar.gz
chromium_src-ccb7d64aac531208d66f0531e51f3865afd00445.tar.bz2
Revert "Fix crash in ExtensionInstallUI::OnInstallSuccess when the active browser was not a tabbed browser. Also cleanup this area a bit."
This reverts commit f39eb61e2e4a93b9a39266aec5f071ef0933b407. TBR=andybons@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/glue')
-rw-r--r--chrome/browser/sync/glue/theme_util.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/chrome/browser/sync/glue/theme_util.cc b/chrome/browser/sync/glue/theme_util.cc
index a69e73e..1c619a1 100644
--- a/chrome/browser/sync/glue/theme_util.cc
+++ b/chrome/browser/sync/glue/theme_util.cc
@@ -8,8 +8,6 @@
#include "base/logging.h"
#include "base/scoped_ptr.h"
-#include "chrome/browser/browser.h"
-#include "chrome/browser/browser_list.h"
#include "chrome/browser/extensions/extension_install_ui.h"
#include "chrome/browser/extensions/extension_updater.h"
#include "chrome/browser/extensions/extensions_service.h"
@@ -121,12 +119,9 @@ void SetCurrentThemeFromThemeSpecifics(
// just set the current theme to it.
profile->SetTheme(extension);
// Pretend the theme was just installed.
- Browser* browser = BrowserList::GetLastActiveWithProfile(profile);
- if (browser) {
- ExtensionInstallUI::ShowThemeInfoBar(
- browser, previous_theme_id, previous_use_system_theme,
- extension, profile);
- }
+ ExtensionInstallUI::ShowThemeInfoBar(
+ previous_theme_id, previous_use_system_theme,
+ extension, profile);
} else {
// No extension with this id exists -- we must install it; we do
// so by adding it as a pending extension and then triggering an