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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 7046114: Remove content dependency on chrome/browser/accessibility/browser_accessibility_state.h and chrom... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
===================================================================
--- chrome/browser/chrome_content_browser_client.cc (revision 88904)
+++ chrome/browser/chrome_content_browser_client.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "chrome/app/breakpad_mac.h"
+#include "chrome/browser/accessibility/browser_accessibility_state.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/character_encoding.h"
#include "chrome/browser/chrome_plugin_message_filter.h"
@@ -135,6 +136,9 @@
new DevToolsHandler(render_view_host);
new ExtensionMessageHandler(render_view_host);
+ if (BrowserAccessibilityState::GetInstance()->IsAccessibleBrowser())
+ render_view_host->EnableRendererAccessibility();
+
InitRenderViewHostForExtensions(render_view_host);
}
@@ -244,11 +248,77 @@
// in the browser process.
if (!g_browser_process->safe_browsing_detection_service())
command_line->AppendSwitch(switches::kDisableClientSidePhishingDetection);
+
+ static const char* const kSwitchNames[] = {
+ switches::kAllowHTTPBackgroundPage,
+ switches::kAllowScriptingGallery,
+ switches::kAppsCheckoutURL,
+ switches::kAppsGalleryURL,
+ switches::kDebugPrint,
+#if defined(GOOGLE_CHROME_BUILD) && !defined(OS_CHROMEOS) && !defined(OS_MACOSX)
+ // Enabled by default in Google Chrome builds, except on CrOS.
+ switches::kDisablePrintPreview,
+#else
+ // Disabled by default in Chromium builds and on CrOS.
+ switches::kEnablePrintPreview,
+#endif
+ switches::kDomAutomationController,
+ switches::kDumpHistogramsOnExit,
+ switches::kEnableClickToPlay,
+ switches::kEnableCrxlessWebApps,
+ switches::kEnableExperimentalExtensionApis,
+ switches::kEnableInBrowserThumbnailing,
+ switches::kEnableIPCFuzzing,
+ switches::kEnableNaCl,
+ switches::kEnableRemoting,
+ switches::kEnableResourceContentSettings,
+ switches::kEnableSearchProviderApiV2,
+ switches::kEnableWatchdog,
+ switches::kExperimentalSpellcheckerFeatures,
+ switches::kMemoryProfiling,
+ switches::kMessageLoopHistogrammer,
+ switches::kPpapiFlashArgs,
+ switches::kPpapiFlashInProcess,
+ switches::kPpapiFlashPath,
+ switches::kPpapiFlashVersion,
+ switches::kProfilingAtStart,
+ switches::kProfilingFile,
+ switches::kProfilingFlush,
+ switches::kRemoteShellPort,
+ switches::kSilentDumpOnDCHECK,
+ };
+
+ command_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
+ arraysize(kSwitchNames));
} else if (process_type == switches::kUtilityProcess) {
if (browser_command_line.HasSwitch(
switches::kEnableExperimentalExtensionApis)) {
command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis);
}
+ } else if (process_type == switches::kPluginProcess) {
+ static const char* const kSwitchNames[] = {
+ #if defined(OS_CHROMEOS)
+ switches::kLoginProfile,
+ #endif
+ switches::kMemoryProfiling,
+ switches::kSilentDumpOnDCHECK,
+ switches::kUserDataDir,
+ };
+
+ command_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
+ arraysize(kSwitchNames));
+ } else if (process_type == switches::kZygoteProcess) {
+ static const char* const kSwitchNames[] = {
+ switches::kEnableRemoting,
+ switches::kUserDataDir, // Make logs go to the right file.
+ // Load (in-process) Pepper plugins in-process in the zygote pre-sandbox.
+ switches::kPpapiFlashInProcess,
+ switches::kPpapiFlashPath,
+ switches::kPpapiFlashVersion,
+ };
+
+ command_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
+ arraysize(kSwitchNames));
}
}
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698