Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7932)

Unified Diff: chrome/browser/themes/theme_service_aurax11.cc

Issue 171413002: linux_aura: Keep GTK state from leaking between profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac compile. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/themes/theme_service_aurax11.cc
diff --git a/chrome/browser/themes/theme_service_aurax11.cc b/chrome/browser/themes/theme_service_aurax11.cc
index 1e596e32dad0bbbb96e77acdebf40c7f955eac76..b9313d5bee4a23fe1cd759db428989d98171a32d 100644
--- a/chrome/browser/themes/theme_service_aurax11.cc
+++ b/chrome/browser/themes/theme_service_aurax11.cc
@@ -41,16 +41,10 @@ NativeThemeX11::NativeThemeX11(PrefService* pref_service)
pref_service_(pref_service) {}
void NativeThemeX11::StartUsingTheme() {
- if (linux_ui_)
- linux_ui_->SetUseSystemTheme(true);
-
pref_service_->SetBoolean(prefs::kUsesSystemTheme, true);
}
void NativeThemeX11::StopUsingTheme() {
- if (linux_ui_)
- linux_ui_->SetUseSystemTheme(false);
-
pref_service_->SetBoolean(prefs::kUsesSystemTheme, false);
}
« no previous file with comments | « chrome/browser/themes/theme_service.cc ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698