| 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
|
|
|