| OLD | NEW |
| 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 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 #include "chrome/common/pref_names.h" | 103 #include "chrome/common/pref_names.h" |
| 104 #include "chrome/common/profiling.h" | 104 #include "chrome/common/profiling.h" |
| 105 #include "chrome/installer/util/google_update_settings.h" | 105 #include "chrome/installer/util/google_update_settings.h" |
| 106 #include "components/google/core/browser/google_util.h" | 106 #include "components/google/core/browser/google_util.h" |
| 107 #include "components/language_usage_metrics/language_usage_metrics.h" | 107 #include "components/language_usage_metrics/language_usage_metrics.h" |
| 108 #include "components/metrics/metrics_service.h" | 108 #include "components/metrics/metrics_service.h" |
| 109 #include "components/nacl/browser/nacl_browser.h" | 109 #include "components/nacl/browser/nacl_browser.h" |
| 110 #include "components/rappor/rappor_service.h" | 110 #include "components/rappor/rappor_service.h" |
| 111 #include "components/signin/core/common/profile_management_switches.h" | 111 #include "components/signin/core/common/profile_management_switches.h" |
| 112 #include "components/startup_metric_utils/startup_metric_utils.h" | 112 #include "components/startup_metric_utils/startup_metric_utils.h" |
| 113 #include "components/translate/content/common/cld_data_source.h" |
| 113 #include "components/translate/core/browser/translate_download_manager.h" | 114 #include "components/translate/core/browser/translate_download_manager.h" |
| 114 #include "components/variations/variations_http_header_provider.h" | 115 #include "components/variations/variations_http_header_provider.h" |
| 115 #include "content/public/browser/browser_thread.h" | 116 #include "content/public/browser/browser_thread.h" |
| 116 #include "content/public/browser/notification_observer.h" | 117 #include "content/public/browser/notification_observer.h" |
| 117 #include "content/public/browser/notification_registrar.h" | 118 #include "content/public/browser/notification_registrar.h" |
| 118 #include "content/public/browser/notification_service.h" | 119 #include "content/public/browser/notification_service.h" |
| 119 #include "content/public/browser/notification_types.h" | 120 #include "content/public/browser/notification_types.h" |
| 120 #include "content/public/browser/site_instance.h" | 121 #include "content/public/browser/site_instance.h" |
| 121 #include "content/public/common/content_client.h" | 122 #include "content/public/common/content_client.h" |
| 122 #include "content/public/common/content_switches.h" | 123 #include "content/public/common/content_switches.h" |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // a task to the UI thread to do registration once you done the necessary | 389 // a task to the UI thread to do registration once you done the necessary |
| 389 // file IO to know you existing component version. | 390 // file IO to know you existing component version. |
| 390 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 391 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| 391 RegisterRecoveryComponent(cus, g_browser_process->local_state()); | 392 RegisterRecoveryComponent(cus, g_browser_process->local_state()); |
| 392 RegisterPepperFlashComponent(cus); | 393 RegisterPepperFlashComponent(cus); |
| 393 RegisterSwiftShaderComponent(cus); | 394 RegisterSwiftShaderComponent(cus); |
| 394 RegisterWidevineCdmComponent(cus); | 395 RegisterWidevineCdmComponent(cus); |
| 395 g_browser_process->pnacl_component_installer()->RegisterPnaclComponent(cus); | 396 g_browser_process->pnacl_component_installer()->RegisterPnaclComponent(cus); |
| 396 #endif | 397 #endif |
| 397 | 398 |
| 398 #if defined(CLD_DATA_FROM_COMPONENT) | 399 if (translate::CldDataSource::ShouldRegisterForComponentUpdates()) { |
| 399 RegisterCldComponent(cus); | 400 RegisterCldComponent(cus); |
| 400 #endif | 401 } |
| 401 | 402 |
| 402 base::FilePath path; | 403 base::FilePath path; |
| 403 if (PathService::Get(chrome::DIR_USER_DATA, &path)) { | 404 if (PathService::Get(chrome::DIR_USER_DATA, &path)) { |
| 404 #if defined(OS_ANDROID) | 405 #if defined(OS_ANDROID) |
| 405 // The CRLSet component was enabled for some releases. This code attempts to | 406 // The CRLSet component was enabled for some releases. This code attempts to |
| 406 // delete it from the local disk of those how may have downloaded it. | 407 // delete it from the local disk of those how may have downloaded it. |
| 407 g_browser_process->crl_set_fetcher()->DeleteFromDisk(path); | 408 g_browser_process->crl_set_fetcher()->DeleteFromDisk(path); |
| 408 #elif !defined(OS_CHROMEOS) | 409 #elif !defined(OS_CHROMEOS) |
| 409 // CRLSetFetcher attempts to load a CRL set from either the local disk or | 410 // CRLSetFetcher attempts to load a CRL set from either the local disk or |
| 410 // network. | 411 // network. |
| (...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1655 chromeos::CrosSettings::Shutdown(); | 1656 chromeos::CrosSettings::Shutdown(); |
| 1656 #endif | 1657 #endif |
| 1657 #endif | 1658 #endif |
| 1658 } | 1659 } |
| 1659 | 1660 |
| 1660 // Public members: | 1661 // Public members: |
| 1661 | 1662 |
| 1662 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { | 1663 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { |
| 1663 chrome_extra_parts_.push_back(parts); | 1664 chrome_extra_parts_.push_back(parts); |
| 1664 } | 1665 } |
| OLD | NEW |