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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 #include "content/public/browser/browser_thread.h" | 118 #include "content/public/browser/browser_thread.h" |
119 #include "content/public/browser/notification_observer.h" | 119 #include "content/public/browser/notification_observer.h" |
120 #include "content/public/browser/notification_registrar.h" | 120 #include "content/public/browser/notification_registrar.h" |
121 #include "content/public/browser/notification_service.h" | 121 #include "content/public/browser/notification_service.h" |
122 #include "content/public/browser/notification_types.h" | 122 #include "content/public/browser/notification_types.h" |
123 #include "content/public/browser/site_instance.h" | 123 #include "content/public/browser/site_instance.h" |
124 #include "content/public/common/content_client.h" | 124 #include "content/public/common/content_client.h" |
125 #include "content/public/common/content_switches.h" | 125 #include "content/public/common/content_switches.h" |
126 #include "content/public/common/main_function_params.h" | 126 #include "content/public/common/main_function_params.h" |
127 #include "extensions/browser/extension_protocols.h" | 127 #include "extensions/browser/extension_protocols.h" |
128 #include "extensions/browser/extension_system.h" | |
129 #include "grit/app_locale_settings.h" | 128 #include "grit/app_locale_settings.h" |
130 #include "grit/browser_resources.h" | 129 #include "grit/browser_resources.h" |
131 #include "grit/chromium_strings.h" | 130 #include "grit/chromium_strings.h" |
132 #include "grit/generated_resources.h" | 131 #include "grit/generated_resources.h" |
133 #include "grit/platform_locale_settings.h" | 132 #include "grit/platform_locale_settings.h" |
134 #include "net/base/net_module.h" | 133 #include "net/base/net_module.h" |
135 #include "net/base/sdch_manager.h" | 134 #include "net/base/sdch_manager.h" |
136 #include "net/cookies/cookie_monster.h" | 135 #include "net/cookies/cookie_monster.h" |
137 #include "net/http/http_network_layer.h" | 136 #include "net/http/http_network_layer.h" |
138 #include "net/http/http_stream_factory.h" | 137 #include "net/http/http_stream_factory.h" |
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 TranslateService::Initialize(); | 1248 TranslateService::Initialize(); |
1250 | 1249 |
1251 // Needs to be done before PostProfileInit, since login manager on CrOS is | 1250 // Needs to be done before PostProfileInit, since login manager on CrOS is |
1252 // called inside PostProfileInit. | 1251 // called inside PostProfileInit. |
1253 content::WebUIControllerFactory::RegisterFactory( | 1252 content::WebUIControllerFactory::RegisterFactory( |
1254 ChromeWebUIControllerFactory::GetInstance()); | 1253 ChromeWebUIControllerFactory::GetInstance()); |
1255 | 1254 |
1256 // NaClBrowserDelegateImpl is accessed inside PostProfileInit(). | 1255 // NaClBrowserDelegateImpl is accessed inside PostProfileInit(). |
1257 // So make sure to create it before that. | 1256 // So make sure to create it before that. |
1258 #if !defined(DISABLE_NACL) | 1257 #if !defined(DISABLE_NACL) |
1259 NaClBrowserDelegateImpl* delegate = new NaClBrowserDelegateImpl( | 1258 NaClBrowserDelegateImpl* delegate = |
1260 extensions::ExtensionSystem::Get(profile_)->info_map()); | 1259 new NaClBrowserDelegateImpl(browser_process_->profile_manager()); |
1261 nacl::NaClBrowser::SetDelegate(delegate); | 1260 nacl::NaClBrowser::SetDelegate(delegate); |
1262 #endif | 1261 #endif |
1263 | 1262 |
1264 // TODO(stevenjb): Move WIN and MACOSX specific code to appropriate Parts. | 1263 // TODO(stevenjb): Move WIN and MACOSX specific code to appropriate Parts. |
1265 // (requires supporting early exit). | 1264 // (requires supporting early exit). |
1266 PostProfileInit(); | 1265 PostProfileInit(); |
1267 | 1266 |
1268 // Retrieve cached GL strings from local state and use them for GPU | 1267 // Retrieve cached GL strings from local state and use them for GPU |
1269 // blacklist decisions. | 1268 // blacklist decisions. |
1270 if (g_browser_process->gl_string_manager()) | 1269 if (g_browser_process->gl_string_manager()) |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 chromeos::CrosSettings::Shutdown(); | 1652 chromeos::CrosSettings::Shutdown(); |
1654 #endif | 1653 #endif |
1655 #endif | 1654 #endif |
1656 } | 1655 } |
1657 | 1656 |
1658 // Public members: | 1657 // Public members: |
1659 | 1658 |
1660 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { | 1659 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { |
1661 chrome_extra_parts_.push_back(parts); | 1660 chrome_extra_parts_.push_back(parts); |
1662 } | 1661 } |
OLD | NEW |