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 6cd498bc826fc1d16924eeb66143aea99ae9848f..0e0ecad12fd2478c63d0477ec0c38e29d54321cb 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. |