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

Unified Diff: chrome/common/platform_util_linux.cc

Issue 400027: On Linux, pick the color of the slider's thumbpart from the GTK theme.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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
« no previous file with comments | « chrome/common/platform_util.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/platform_util_linux.cc
===================================================================
--- chrome/common/platform_util_linux.cc (revision 34028)
+++ chrome/common/platform_util_linux.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/process_util.h"
#include "base/singleton.h"
#include "base/string_util.h"
+#include "chrome/browser/gtk/gtk_theme_provider.h"
#include "chrome/common/gtk_util.h"
#include "chrome/common/process_watcher.h"
#include "googleurl/src/gurl.h"
@@ -88,11 +89,12 @@
gtk_widget_show_all(dialog);
}
-RendererPreferences GetInitedRendererPreferences() {
+RendererPreferences GetInitedRendererPreferences(Profile* profile) {
RendererPreferences* prefs = Singleton<RendererPreferences>::get();
static bool inited = false;
if (!inited) {
- gtk_util::InitRendererPrefsFromGtkSettings(prefs);
+ gtk_util::InitRendererPrefsFromGtkSettings(prefs,
+ GtkThemeProvider::GetFrom(profile)->UseGtkTheme());
inited = true;
}
return *prefs;
« no previous file with comments | « chrome/common/platform_util.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698