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

Unified Diff: chrome/common/platform_util_linux.cc

Issue 458013: Make the default RendererPreferences smarter.... (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/platform_util_mac.mm » ('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 33621)
+++ chrome/common/platform_util_linux.cc (working copy)
@@ -8,6 +8,7 @@
#include "base/file_util.h"
#include "base/process_util.h"
+#include "base/singleton.h"
#include "base/string_util.h"
#include "chrome/common/gtk_util.h"
#include "chrome/common/process_watcher.h"
@@ -87,4 +88,14 @@
gtk_widget_show_all(dialog);
}
+RendererPreferences GetInitedRendererPreferences() {
+ RendererPreferences* prefs = Singleton<RendererPreferences>::get();
+ static bool inited = false;
+ if (!inited) {
+ gtk_util::InitRendererPrefsFromGtkSettings(prefs);
+ inited = true;
+ }
+ return *prefs;
+}
+
} // namespace platform_util
« no previous file with comments | « chrome/common/platform_util.h ('k') | chrome/common/platform_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698