summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/compact_navigation_bar.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-18 00:18:44 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-18 00:18:44 +0000
commit5786d3d3a7cd151fb5dc0aa2f1f0d84460fb6cdf (patch)
tree7b2fd42c44161932ece0e025a08fa27ccdfc9a59 /chrome/browser/chromeos/compact_navigation_bar.cc
parent9b0c542182627216e90ccb19a68afe0d8a01b266 (diff)
downloadchromium_src-5786d3d3a7cd151fb5dc0aa2f1f0d84460fb6cdf.zip
chromium_src-5786d3d3a7cd151fb5dc0aa2f1f0d84460fb6cdf.tar.gz
chromium_src-5786d3d3a7cd151fb5dc0aa2f1f0d84460fb6cdf.tar.bz2
[More BTP includes.]
Uninstall themes when all theme infobars are gone; not on each infobar's destruction. There are multiple problems with the current implementation: - It handles multiple tabs with theme install infobars badly. - It has a subtle race condition where installing a second theme, and then installing the original theme (note: not clicking undo) uninstalled both themes. Instead, only uninstall unused themes when all infobars are closed down. BUG=none TEST=Install theme A. Install theme B. Install theme A. Restart chrome. Theme A should show. TEST=Install theme A in window 1. Install theme B in window 2. Install theme C in window 3. Clicking undo in any of those windows in any order should work. Previous Review URL: http://codereview.chromium.org/504052 Review URL: http://codereview.chromium.org/501096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34900 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/compact_navigation_bar.cc')
-rw-r--r--chrome/browser/chromeos/compact_navigation_bar.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/compact_navigation_bar.cc b/chrome/browser/chromeos/compact_navigation_bar.cc
index 7d16b86..ddd1443 100644
--- a/chrome/browser/chromeos/compact_navigation_bar.cc
+++ b/chrome/browser/chromeos/compact_navigation_bar.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h"
#include "chrome/browser/back_forward_menu_model_views.h"
#include "chrome/browser/browser.h"
+#include "chrome/browser/browser_theme_provider.h"
#include "chrome/browser/browser_window.h"
#include "chrome/browser/chromeos/status_area_view.h"
#include "chrome/browser/profile.h"