| Index: chrome/browser/browser_process_impl.cc
|
| ===================================================================
|
| --- chrome/browser/browser_process_impl.cc (revision 204507)
|
| +++ chrome/browser/browser_process_impl.cc (working copy)
|
| @@ -167,7 +167,8 @@
|
| using_new_frames_(false),
|
| render_widget_snapshot_taker_(new RenderWidgetSnapshotTaker),
|
| download_status_updater_(new DownloadStatusUpdater),
|
| - local_state_task_runner_(local_state_task_runner) {
|
| + local_state_task_runner_(local_state_task_runner),
|
| + command_line_(command_line) {
|
| g_browser_process = this;
|
| platform_part_.reset(new BrowserProcessPlatformPart());
|
|
|
| @@ -884,9 +885,11 @@
|
| #if defined(OS_POSIX)
|
| // Also find plugins in a user-specific plugins dir,
|
| // e.g. ~/.config/chromium/Plugins.
|
| - base::FilePath user_data_dir;
|
| - if (PathService::Get(chrome::DIR_USER_DATA, &user_data_dir))
|
| - plugin_service->AddExtraPluginDir(user_data_dir.Append("Plugins"));
|
| + if (!command_line_.HasSwitch(switches::kDisablePluginsDiscovery)) {
|
| + base::FilePath user_data_dir;
|
| + if (PathService::Get(chrome::DIR_USER_DATA, &user_data_dir))
|
| + plugin_service->AddExtraPluginDir(user_data_dir.Append("Plugins"));
|
| + }
|
| #endif
|
|
|
| // Triggers initialization of the singleton instance on UI thread.
|
| @@ -899,8 +902,7 @@
|
| #endif
|
| #endif // defined(ENABLE_PLUGINS)
|
|
|
| - const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
| - if (!command_line.HasSwitch(switches::kDisableWebResources)) {
|
| + if (!command_line_.HasSwitch(switches::kDisableWebResources)) {
|
| DCHECK(!promo_resource_service_.get());
|
| promo_resource_service_ = new PromoResourceService;
|
| promo_resource_service_->StartAfterDelay();
|
|
|