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

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

Issue 131203002: Move LanguageUsageMetrics and TranslateBrowserMetrics to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 11 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/language_usage_metrics.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include "chrome/browser/extensions/extension_protocols.h" 55 #include "chrome/browser/extensions/extension_protocols.h"
56 #include "chrome/browser/extensions/extension_service.h" 56 #include "chrome/browser/extensions/extension_service.h"
57 #include "chrome/browser/extensions/extension_system.h" 57 #include "chrome/browser/extensions/extension_system.h"
58 #include "chrome/browser/extensions/startup_helper.h" 58 #include "chrome/browser/extensions/startup_helper.h"
59 #include "chrome/browser/first_run/first_run.h" 59 #include "chrome/browser/first_run/first_run.h"
60 #include "chrome/browser/first_run/upgrade_util.h" 60 #include "chrome/browser/first_run/upgrade_util.h"
61 #include "chrome/browser/google/google_search_counter.h" 61 #include "chrome/browser/google/google_search_counter.h"
62 #include "chrome/browser/google/google_util.h" 62 #include "chrome/browser/google/google_util.h"
63 #include "chrome/browser/gpu/gl_string_manager.h" 63 #include "chrome/browser/gpu/gl_string_manager.h"
64 #include "chrome/browser/jankometer.h" 64 #include "chrome/browser/jankometer.h"
65 #include "chrome/browser/language_usage_metrics.h"
66 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 65 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
67 #include "chrome/browser/metrics/field_trial_synchronizer.h" 66 #include "chrome/browser/metrics/field_trial_synchronizer.h"
68 #include "chrome/browser/metrics/metrics_log.h" 67 #include "chrome/browser/metrics/metrics_log.h"
69 #include "chrome/browser/metrics/metrics_service.h" 68 #include "chrome/browser/metrics/metrics_service.h"
70 #include "chrome/browser/metrics/thread_watcher.h" 69 #include "chrome/browser/metrics/thread_watcher.h"
71 #include "chrome/browser/metrics/tracking_synchronizer.h" 70 #include "chrome/browser/metrics/tracking_synchronizer.h"
72 #include "chrome/browser/metrics/variations/variations_http_header_provider.h" 71 #include "chrome/browser/metrics/variations/variations_http_header_provider.h"
73 #include "chrome/browser/metrics/variations/variations_service.h" 72 #include "chrome/browser/metrics/variations/variations_service.h"
74 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" 73 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h"
75 #include "chrome/browser/net/chrome_net_log.h" 74 #include "chrome/browser/net/chrome_net_log.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 #include "chrome/common/chrome_result_codes.h" 106 #include "chrome/common/chrome_result_codes.h"
108 #include "chrome/common/chrome_switches.h" 107 #include "chrome/common/chrome_switches.h"
109 #include "chrome/common/crash_keys.h" 108 #include "chrome/common/crash_keys.h"
110 #include "chrome/common/env_vars.h" 109 #include "chrome/common/env_vars.h"
111 #include "chrome/common/logging_chrome.h" 110 #include "chrome/common/logging_chrome.h"
112 #include "chrome/common/net/net_resource_provider.h" 111 #include "chrome/common/net/net_resource_provider.h"
113 #include "chrome/common/pref_names.h" 112 #include "chrome/common/pref_names.h"
114 #include "chrome/common/profile_management_switches.h" 113 #include "chrome/common/profile_management_switches.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"
116 #include "components/language_usage_metrics/language_usage_metrics.h"
117 #include "components/nacl/browser/nacl_browser.h" 117 #include "components/nacl/browser/nacl_browser.h"
118 #include "components/nacl/browser/nacl_process_host.h" 118 #include "components/nacl/browser/nacl_process_host.h"
119 #include "components/startup_metric_utils/startup_metric_utils.h" 119 #include "components/startup_metric_utils/startup_metric_utils.h"
120 #include "content/public/browser/browser_thread.h" 120 #include "content/public/browser/browser_thread.h"
121 #include "content/public/browser/notification_observer.h" 121 #include "content/public/browser/notification_observer.h"
122 #include "content/public/browser/notification_registrar.h" 122 #include "content/public/browser/notification_registrar.h"
123 #include "content/public/browser/notification_service.h" 123 #include "content/public/browser/notification_service.h"
124 #include "content/public/browser/notification_types.h" 124 #include "content/public/browser/notification_types.h"
125 #include "content/public/browser/site_instance.h" 125 #include "content/public/browser/site_instance.h"
126 #include "content/public/common/content_client.h" 126 #include "content/public/common/content_client.h"
(...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 base::FilePath path = 1379 base::FilePath path =
1380 parsed_command_line().GetSwitchValuePath(switches::kDebugPrint); 1380 parsed_command_line().GetSwitchValuePath(switches::kDebugPrint);
1381 printing::PrintedDocument::set_debug_dump_path(path); 1381 printing::PrintedDocument::set_debug_dump_path(path);
1382 } 1382 }
1383 #endif 1383 #endif
1384 1384
1385 HandleTestParameters(parsed_command_line()); 1385 HandleTestParameters(parsed_command_line());
1386 browser_process_->metrics_service()->RecordBreakpadHasDebugger( 1386 browser_process_->metrics_service()->RecordBreakpadHasDebugger(
1387 base::debug::BeingDebugged()); 1387 base::debug::BeingDebugged());
1388 1388
1389 LanguageUsageMetrics::RecordAcceptLanguages( 1389 language_usage_metrics::LanguageUsageMetrics::RecordAcceptLanguages(
1390 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages)); 1390 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages));
1391 LanguageUsageMetrics::RecordApplicationLanguage( 1391 language_usage_metrics::LanguageUsageMetrics::RecordApplicationLanguage(
1392 browser_process_->GetApplicationLocale()); 1392 browser_process_->GetApplicationLocale());
1393 1393
1394 // The extension service may be available at this point. If the command line 1394 // The extension service may be available at this point. If the command line
1395 // specifies --uninstall-extension, attempt the uninstall extension startup 1395 // specifies --uninstall-extension, attempt the uninstall extension startup
1396 // action. 1396 // action.
1397 if (parsed_command_line().HasSwitch(switches::kUninstallExtension)) { 1397 if (parsed_command_line().HasSwitch(switches::kUninstallExtension)) {
1398 extensions::StartupHelper extension_startup_helper; 1398 extensions::StartupHelper extension_startup_helper;
1399 if (extension_startup_helper.UninstallExtension( 1399 if (extension_startup_helper.UninstallExtension(
1400 parsed_command_line(), profile_)) 1400 parsed_command_line(), profile_))
1401 return content::RESULT_CODE_NORMAL_EXIT; 1401 return content::RESULT_CODE_NORMAL_EXIT;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 chromeos::CrosSettings::Shutdown(); 1663 chromeos::CrosSettings::Shutdown();
1664 #endif 1664 #endif
1665 #endif 1665 #endif
1666 } 1666 }
1667 1667
1668 // Public members: 1668 // Public members:
1669 1669
1670 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 1670 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
1671 chrome_extra_parts_.push_back(parts); 1671 chrome_extra_parts_.push_back(parts);
1672 } 1672 }
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/language_usage_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698