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

Side by Side Diff: chrome/browser/chrome_browser_main.cc

Issue 75463005: Move more files from chrome/browser/nacl_host/ to components/nacl/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #if defined(TOOLKIT_GTK) 7 #if defined(TOOLKIT_GTK)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #endif 9 #endif
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #include "chrome/browser/language_usage_metrics.h" 65 #include "chrome/browser/language_usage_metrics.h"
66 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 66 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
67 #include "chrome/browser/metrics/field_trial_synchronizer.h" 67 #include "chrome/browser/metrics/field_trial_synchronizer.h"
68 #include "chrome/browser/metrics/metrics_log.h" 68 #include "chrome/browser/metrics/metrics_log.h"
69 #include "chrome/browser/metrics/metrics_service.h" 69 #include "chrome/browser/metrics/metrics_service.h"
70 #include "chrome/browser/metrics/thread_watcher.h" 70 #include "chrome/browser/metrics/thread_watcher.h"
71 #include "chrome/browser/metrics/tracking_synchronizer.h" 71 #include "chrome/browser/metrics/tracking_synchronizer.h"
72 #include "chrome/browser/metrics/variations/variations_http_header_provider.h" 72 #include "chrome/browser/metrics/variations/variations_http_header_provider.h"
73 #include "chrome/browser/metrics/variations/variations_service.h" 73 #include "chrome/browser/metrics/variations/variations_service.h"
74 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" 74 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h"
75 #include "chrome/browser/nacl_host/nacl_process_host.h"
76 #include "chrome/browser/net/chrome_net_log.h" 75 #include "chrome/browser/net/chrome_net_log.h"
77 #include "chrome/browser/net/crl_set_fetcher.h" 76 #include "chrome/browser/net/crl_set_fetcher.h"
78 #include "chrome/browser/notifications/desktop_notification_service.h" 77 #include "chrome/browser/notifications/desktop_notification_service.h"
79 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 78 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
80 #include "chrome/browser/performance_monitor/performance_monitor.h" 79 #include "chrome/browser/performance_monitor/performance_monitor.h"
81 #include "chrome/browser/performance_monitor/startup_timer.h" 80 #include "chrome/browser/performance_monitor/startup_timer.h"
82 #include "chrome/browser/plugins/plugin_prefs.h" 81 #include "chrome/browser/plugins/plugin_prefs.h"
83 #include "chrome/browser/pref_service_flags_storage.h" 82 #include "chrome/browser/pref_service_flags_storage.h"
84 #include "chrome/browser/prefs/chrome_pref_service_factory.h" 83 #include "chrome/browser/prefs/chrome_pref_service_factory.h"
85 #include "chrome/browser/prefs/command_line_pref_store.h" 84 #include "chrome/browser/prefs/command_line_pref_store.h"
(...skipping 22 matching lines...) Expand all
108 #include "chrome/common/chrome_result_codes.h" 107 #include "chrome/common/chrome_result_codes.h"
109 #include "chrome/common/chrome_switches.h" 108 #include "chrome/common/chrome_switches.h"
110 #include "chrome/common/crash_keys.h" 109 #include "chrome/common/crash_keys.h"
111 #include "chrome/common/env_vars.h" 110 #include "chrome/common/env_vars.h"
112 #include "chrome/common/logging_chrome.h" 111 #include "chrome/common/logging_chrome.h"
113 #include "chrome/common/net/net_resource_provider.h" 112 #include "chrome/common/net/net_resource_provider.h"
114 #include "chrome/common/pref_names.h" 113 #include "chrome/common/pref_names.h"
115 #include "chrome/common/profiling.h" 114 #include "chrome/common/profiling.h"
116 #include "chrome/installer/util/google_update_settings.h" 115 #include "chrome/installer/util/google_update_settings.h"
117 #include "components/nacl/browser/nacl_browser.h" 116 #include "components/nacl/browser/nacl_browser.h"
117 #include "components/nacl/browser/nacl_process_host.h"
118 #include "components/startup_metric_utils/startup_metric_utils.h" 118 #include "components/startup_metric_utils/startup_metric_utils.h"
119 #include "content/public/browser/browser_thread.h" 119 #include "content/public/browser/browser_thread.h"
120 #include "content/public/browser/notification_observer.h" 120 #include "content/public/browser/notification_observer.h"
121 #include "content/public/browser/notification_registrar.h" 121 #include "content/public/browser/notification_registrar.h"
122 #include "content/public/browser/notification_service.h" 122 #include "content/public/browser/notification_service.h"
123 #include "content/public/browser/notification_types.h" 123 #include "content/public/browser/notification_types.h"
124 #include "content/public/browser/site_instance.h" 124 #include "content/public/browser/site_instance.h"
125 #include "content/public/common/content_client.h" 125 #include "content/public/common/content_client.h"
126 #include "content/public/common/content_switches.h" 126 #include "content/public/common/content_switches.h"
127 #include "content/public/common/main_function_params.h" 127 #include "content/public/common/main_function_params.h"
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 #if !defined(DISABLE_NACL) 1490 #if !defined(DISABLE_NACL)
1491 if (parsed_command_line().HasSwitch(switches::kPnaclDir)) { 1491 if (parsed_command_line().HasSwitch(switches::kPnaclDir)) {
1492 PathService::Override(chrome::DIR_PNACL_BASE, 1492 PathService::Override(chrome::DIR_PNACL_BASE,
1493 parsed_command_line().GetSwitchValuePath( 1493 parsed_command_line().GetSwitchValuePath(
1494 switches::kPnaclDir)); 1494 switches::kPnaclDir));
1495 } 1495 }
1496 1496
1497 content::BrowserThread::PostTask( 1497 content::BrowserThread::PostTask(
1498 content::BrowserThread::IO, 1498 content::BrowserThread::IO,
1499 FROM_HERE, 1499 FROM_HERE,
1500 base::Bind(NaClProcessHost::EarlyStartup)); 1500 base::Bind(nacl::NaClProcessHost::EarlyStartup));
1501 #endif 1501 #endif
1502 1502
1503 // Make sure initial prefs are recorded 1503 // Make sure initial prefs are recorded
1504 PrefMetricsService::Factory::GetForProfile(profile_); 1504 PrefMetricsService::Factory::GetForProfile(profile_);
1505 1505
1506 PreBrowserStart(); 1506 PreBrowserStart();
1507 1507
1508 // Instantiate the notification UI manager, as this triggers a perf timer 1508 // Instantiate the notification UI manager, as this triggers a perf timer
1509 // used to measure startup time. TODO(stevenjb): Figure out what is actually 1509 // used to measure startup time. TODO(stevenjb): Figure out what is actually
1510 // triggering the timer and call that explicitly in the approprate place. 1510 // triggering the timer and call that explicitly in the approprate place.
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 chromeos::CrosSettings::Shutdown(); 1720 chromeos::CrosSettings::Shutdown();
1721 #endif 1721 #endif
1722 #endif 1722 #endif
1723 } 1723 }
1724 1724
1725 // Public members: 1725 // Public members:
1726 1726
1727 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 1727 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
1728 chrome_extra_parts_.push_back(parts); 1728 chrome_extra_parts_.push_back(parts);
1729 } 1729 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698