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

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

Issue 5758002: Make HelpApp component extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable HelpApp in tests Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 14 matching lines...) Expand all
25 #include "base/string_util.h" 25 #include "base/string_util.h"
26 #include "base/sys_string_conversions.h" 26 #include "base/sys_string_conversions.h"
27 #include "base/threading/platform_thread.h" 27 #include "base/threading/platform_thread.h"
28 #include "base/threading/thread_restrictions.h" 28 #include "base/threading/thread_restrictions.h"
29 #include "base/time.h" 29 #include "base/time.h"
30 #include "base/utf_string_conversions.h" 30 #include "base/utf_string_conversions.h"
31 #include "base/values.h" 31 #include "base/values.h"
32 #include "build/build_config.h" 32 #include "build/build_config.h"
33 #include "chrome/browser/about_flags.h" 33 #include "chrome/browser/about_flags.h"
34 #include "chrome/browser/browser_main_win.h" 34 #include "chrome/browser/browser_main_win.h"
35 #include "chrome/browser/defaults.h"
35 #include "chrome/browser/browser_process.h" 36 #include "chrome/browser/browser_process.h"
36 #include "chrome/browser/browser_process_impl.h" 37 #include "chrome/browser/browser_process_impl.h"
37 #include "chrome/browser/browser_shutdown.h" 38 #include "chrome/browser/browser_shutdown.h"
38 #include "chrome/browser/browser_thread.h" 39 #include "chrome/browser/browser_thread.h"
39 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 40 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
40 #include "chrome/browser/extensions/extension_protocols.h" 41 #include "chrome/browser/extensions/extension_protocols.h"
41 #include "chrome/browser/extensions/extension_service.h" 42 #include "chrome/browser/extensions/extension_service.h"
42 #include "chrome/browser/extensions/extensions_startup.h" 43 #include "chrome/browser/extensions/extensions_startup.h"
43 #include "chrome/browser/first_run/first_run.h" 44 #include "chrome/browser/first_run/first_run.h"
44 #include "chrome/browser/jankometer.h" 45 #include "chrome/browser/jankometer.h"
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 if (!breakpad_enabled && metrics_reporting_enabled->IsUserModifiable()) 1054 if (!breakpad_enabled && metrics_reporting_enabled->IsUserModifiable())
1054 breakpad_enabled = getenv(env_vars::kHeadless) != NULL; 1055 breakpad_enabled = getenv(env_vars::kHeadless) != NULL;
1055 #endif // #if defined(OS_CHROMEOS) 1056 #endif // #if defined(OS_CHROMEOS)
1056 return breakpad_enabled; 1057 return breakpad_enabled;
1057 } 1058 }
1058 #endif // #if defined(USE_LINUX_BREAKPAD) 1059 #endif // #if defined(USE_LINUX_BREAKPAD)
1059 1060
1060 // Main routine for running as the Browser process. 1061 // Main routine for running as the Browser process.
1061 int BrowserMain(const MainFunctionParams& parameters) { 1062 int BrowserMain(const MainFunctionParams& parameters) {
1062 TRACE_EVENT_BEGIN("BrowserMain", 0, ""); 1063 TRACE_EVENT_BEGIN("BrowserMain", 0, "");
1064
1065 // If we're running tests (ui_task is non-null).
1066 if (parameters.ui_task)
Aaron Boodman 2011/01/24 19:45:58 You already know how I feel about doing things dif
1067 browser_defaults::enable_help_app = false;
1068
1063 scoped_ptr<BrowserMainParts> 1069 scoped_ptr<BrowserMainParts>
1064 parts(BrowserMainParts::CreateBrowserMainParts(parameters)); 1070 parts(BrowserMainParts::CreateBrowserMainParts(parameters));
1065 1071
1066 parts->EarlyInitialization(); 1072 parts->EarlyInitialization();
1067 1073
1068 // Must happen before we try to use a message loop or display any UI. 1074 // Must happen before we try to use a message loop or display any UI.
1069 InitializeToolkit(parameters); 1075 InitializeToolkit(parameters);
1070 1076
1071 parts->MainMessageLoopStart(); 1077 parts->MainMessageLoopStart();
1072 1078
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
1749 #if defined(OS_CHROMEOS) 1755 #if defined(OS_CHROMEOS)
1750 // To be precise, logout (browser shutdown) is not yet done, but the 1756 // To be precise, logout (browser shutdown) is not yet done, but the
1751 // remaining work is negligible, hence we say LogoutDone here. 1757 // remaining work is negligible, hence we say LogoutDone here.
1752 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", 1758 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone",
1753 false); 1759 false);
1754 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); 1760 chromeos::BootTimesLoader::Get()->WriteLogoutTimes();
1755 #endif 1761 #endif
1756 TRACE_EVENT_END("BrowserMain", 0, 0); 1762 TRACE_EVENT_END("BrowserMain", 0, 0);
1757 return result_code; 1763 return result_code;
1758 } 1764 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_resources.grd » ('j') | chrome/browser/browser_resources.grd » ('J')

Powered by Google App Engine
This is Rietveld 408576698