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

Unified Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 10808006: Move printing.* prefs from local state to profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months 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/ui/webui/chrome_web_ui_controller_factory.cc
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
index 286ee2771fb76cf3d00dbf2f2fd062409d092b63..f3370f467f99ea2b5a35bde8e4058b56ec80af44 100644
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
@@ -6,7 +6,6 @@
#include "base/command_line.h"
#include "chrome/browser/about_flags.h"
-#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_web_ui.h"
#include "chrome/browser/history/history_types.h"
@@ -254,10 +253,8 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
#endif
#if defined(ENABLE_PRINTING)
if (url.host() == chrome::kChromeUIPrintHost &&
- !g_browser_process->local_state()->GetBoolean(
- prefs::kPrintPreviewDisabled)) {
+ !profile->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled))
return &NewWebUI<PrintPreviewUI>;
- }
#endif
#if defined(OS_WIN)
if (url.host() == chrome::kChromeUIConflictsHost)

Powered by Google App Engine
This is Rietveld 408576698