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

Unified Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.cc

Issue 8896018: Add a policy pref for the --enable-memory-info flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing file with RegisterBooleanPref(). Created 9 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/tab_contents/render_view_host_delegate_helper.cc
diff --git a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
index 6116d4bf979df1f6ac416104975b022aceefd735..0946340f43863d7b51eda2d5ce7a432136c8a61a 100644
--- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
+++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
@@ -472,7 +472,7 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
web_prefs.accelerated_video_enabled =
!command_line.HasSwitch(switches::kDisableAcceleratedVideo);
web_prefs.memory_info_enabled =
- command_line.HasSwitch(switches::kEnableMemoryInfo);
+ prefs->GetBoolean(prefs::kEnableMemoryInfo);
web_prefs.interactive_form_validation_enabled =
!command_line.HasSwitch(switches::kDisableInteractiveFormValidation);
web_prefs.fullscreen_enabled =

Powered by Google App Engine
This is Rietveld 408576698