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

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

Issue 5730004: Rename ExtensionsService to ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 10 years 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
« no previous file with comments | « chrome/browser/browser_browsertest.cc ('k') | chrome/browser/browsing_data_remover.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser_main.h" 5 #include "chrome/browser/browser_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 24 matching lines...) Expand all
35 #include "build/build_config.h" 35 #include "build/build_config.h"
36 #include "chrome/browser/about_flags.h" 36 #include "chrome/browser/about_flags.h"
37 #include "chrome/browser/browser_main_win.h" 37 #include "chrome/browser/browser_main_win.h"
38 #include "chrome/browser/prefs/browser_prefs.h" 38 #include "chrome/browser/prefs/browser_prefs.h"
39 #include "chrome/browser/browser_process.h" 39 #include "chrome/browser/browser_process.h"
40 #include "chrome/browser/browser_process_impl.h" 40 #include "chrome/browser/browser_process_impl.h"
41 #include "chrome/browser/browser_shutdown.h" 41 #include "chrome/browser/browser_shutdown.h"
42 #include "chrome/browser/browser_thread.h" 42 #include "chrome/browser/browser_thread.h"
43 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 43 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
44 #include "chrome/browser/extensions/extension_protocols.h" 44 #include "chrome/browser/extensions/extension_protocols.h"
45 #include "chrome/browser/extensions/extensions_service.h" 45 #include "chrome/browser/extensions/extension_service.h"
46 #include "chrome/browser/extensions/extensions_startup.h" 46 #include "chrome/browser/extensions/extensions_startup.h"
47 #include "chrome/browser/first_run/first_run.h" 47 #include "chrome/browser/first_run/first_run.h"
48 #include "chrome/browser/jankometer.h" 48 #include "chrome/browser/jankometer.h"
49 #include "chrome/browser/metrics/histogram_synchronizer.h" 49 #include "chrome/browser/metrics/histogram_synchronizer.h"
50 #include "chrome/browser/metrics/metrics_log.h" 50 #include "chrome/browser/metrics/metrics_log.h"
51 #include "chrome/browser/metrics/metrics_service.h" 51 #include "chrome/browser/metrics/metrics_service.h"
52 #include "chrome/browser/net/blob_url_request_job_factory.h" 52 #include "chrome/browser/net/blob_url_request_job_factory.h"
53 #include "chrome/browser/net/chrome_dns_cert_provenance_checker.h" 53 #include "chrome/browser/net/chrome_dns_cert_provenance_checker.h"
54 #include "chrome/browser/net/chrome_dns_cert_provenance_checker_factory.h" 54 #include "chrome/browser/net/chrome_dns_cert_provenance_checker_factory.h"
55 #include "chrome/browser/net/metadata_url_request.h" 55 #include "chrome/browser/net/metadata_url_request.h"
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 // should display the entry in the context menu or not. 1560 // should display the entry in the context menu or not.
1561 browser_process->CheckForInspectorFiles(); 1561 browser_process->CheckForInspectorFiles();
1562 1562
1563 #if defined(OS_CHROMEOS) 1563 #if defined(OS_CHROMEOS)
1564 metrics->StartExternalMetrics(); 1564 metrics->StartExternalMetrics();
1565 #endif 1565 #endif
1566 1566
1567 // Initialize extension event routers. Note that on Chrome OS, this will 1567 // Initialize extension event routers. Note that on Chrome OS, this will
1568 // not succeed if the user has not logged in yet, in which case the 1568 // not succeed if the user has not logged in yet, in which case the
1569 // event routers are initialized in LoginUtilsImpl::CompleteLogin instead. 1569 // event routers are initialized in LoginUtilsImpl::CompleteLogin instead.
1570 if (profile->GetExtensionsService()) { 1570 if (profile->GetExtensionService()) {
1571 // This will initialize bookmarks. Call it after bookmark import is done. 1571 // This will initialize bookmarks. Call it after bookmark import is done.
1572 // See issue 40144. 1572 // See issue 40144.
1573 profile->GetExtensionsService()->InitEventRouters(); 1573 profile->GetExtensionService()->InitEventRouters();
1574 } 1574 }
1575 1575
1576 // The extension service may be available at this point. If the command line 1576 // The extension service may be available at this point. If the command line
1577 // specifies --uninstall-extension, attempt the uninstall extension startup 1577 // specifies --uninstall-extension, attempt the uninstall extension startup
1578 // action. 1578 // action.
1579 if (parsed_command_line.HasSwitch(switches::kUninstallExtension)) { 1579 if (parsed_command_line.HasSwitch(switches::kUninstallExtension)) {
1580 ExtensionsStartupUtil ext_startup_util; 1580 ExtensionsStartupUtil ext_startup_util;
1581 if (ext_startup_util.UninstallExtension(parsed_command_line, profile)) { 1581 if (ext_startup_util.UninstallExtension(parsed_command_line, profile)) {
1582 return ResultCodes::NORMAL_EXIT; 1582 return ResultCodes::NORMAL_EXIT;
1583 } else { 1583 } else {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 #if defined(OS_CHROMEOS) 1724 #if defined(OS_CHROMEOS)
1725 // To be precise, logout (browser shutdown) is not yet done, but the 1725 // To be precise, logout (browser shutdown) is not yet done, but the
1726 // remaining work is negligible, hence we say LogoutDone here. 1726 // remaining work is negligible, hence we say LogoutDone here.
1727 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", 1727 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone",
1728 false); 1728 false);
1729 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); 1729 chromeos::BootTimesLoader::Get()->WriteLogoutTimes();
1730 #endif 1730 #endif
1731 TRACE_EVENT_END("BrowserMain", 0, 0); 1731 TRACE_EVENT_END("BrowserMain", 0, 0);
1732 return result_code; 1732 return result_code;
1733 } 1733 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_browsertest.cc ('k') | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698