Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index 46577411e0e026853a2c6eda06ec0901ce3e1d7d..535e0d91bf58c22cecb91df6d5f71d9e5efb3d88 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -449,7 +449,7 @@ void ChromeContentBrowserClient::RenderProcessHostCreated( |
id, profile, profile->GetRequestContextForRenderProcess(id))); |
host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); |
#if defined(ENABLE_PRINTING) |
- host->GetChannel()->AddFilter(new PrintingMessageFilter(id)); |
+ host->GetChannel()->AddFilter(new PrintingMessageFilter(id, profile)); |
#endif |
host->GetChannel()->AddFilter( |
new SearchProviderInstallStateMessageFilter(id, profile)); |
@@ -793,13 +793,9 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches( |
command_line->AppendSwitch( |
switches::kDisableClientSidePhishingDetection); |
} |
- } |
- { |
- PrefService* local_state = g_browser_process->local_state(); |
- if (local_state && |
- !local_state->GetBoolean(prefs::kPrintPreviewDisabled)) { |
+ |
+ if (!prefs->GetBoolean(prefs::kPrintPreviewDisabled)) |
command_line->AppendSwitch(switches::kRendererPrintPreview); |
- } |
} |
// Please keep this in alphabetical order. |