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

Unified Diff: chrome/browser/gpu/gl_string_manager.cc

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 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
Index: chrome/browser/gpu/gl_string_manager.cc
diff --git a/chrome/browser/gpu/gl_string_manager.cc b/chrome/browser/gpu/gl_string_manager.cc
index 7cc8bc6698438c3ee177c7d112fac53da745068a..a9216f5f97286e1eaaf3fc3571db932a368014fd 100644
--- a/chrome/browser/gpu/gl_string_manager.cc
+++ b/chrome/browser/gpu/gl_string_manager.cc
@@ -21,10 +21,11 @@ void GLStringManager::Initialize() {
// We never remove this observer from GpuDataManager.
content::GpuDataManager::GetInstance()->AddObserver(this);
- PrefService* local_state = g_browser_process->local_state();
+ PrefServiceSimple* local_state = g_browser_process->local_state();
if (!local_state)
return;
+ // TODO(joi): This should happen via browser_prefs::RegisterLocalState().
local_state->RegisterStringPref(prefs::kGLVendorString, gl_vendor_);
local_state->RegisterStringPref(prefs::kGLRendererString, gl_renderer_);
local_state->RegisterStringPref(prefs::kGLVersionString, gl_version_);

Powered by Google App Engine
This is Rietveld 408576698