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

Side by Side Diff: chrome/browser/ui/browser_init.cc

Issue 7690006: Revert 97446 - Modifying prefetch to account for multi-profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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/ui/browser_init.h" 5 #include "chrome/browser/ui/browser_init.h"
6 6
7 #include <algorithm> // For max(). 7 #include <algorithm> // For max().
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/automation/testing_automation_provider.h" 23 #include "chrome/browser/automation/testing_automation_provider.h"
24 #include "chrome/browser/browser_process.h" 24 #include "chrome/browser/browser_process.h"
25 #include "chrome/browser/component_updater/component_updater_service.h" 25 #include "chrome/browser/component_updater/component_updater_service.h"
26 #include "chrome/browser/component_updater/pepper_flash_component_installer.h" 26 #include "chrome/browser/component_updater/pepper_flash_component_installer.h"
27 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" 27 #include "chrome/browser/custom_handlers/protocol_handler_registry.h"
28 #include "chrome/browser/defaults.h" 28 #include "chrome/browser/defaults.h"
29 #include "chrome/browser/extensions/extension_creator.h" 29 #include "chrome/browser/extensions/extension_creator.h"
30 #include "chrome/browser/extensions/extension_service.h" 30 #include "chrome/browser/extensions/extension_service.h"
31 #include "chrome/browser/extensions/pack_extension_job.h" 31 #include "chrome/browser/extensions/pack_extension_job.h"
32 #include "chrome/browser/first_run/first_run.h" 32 #include "chrome/browser/first_run/first_run.h"
33 #include "chrome/browser/net/predictor.h" 33 #include "chrome/browser/net/predictor_api.h"
34 #include "chrome/browser/net/url_fixer_upper.h" 34 #include "chrome/browser/net/url_fixer_upper.h"
35 #include "chrome/browser/notifications/desktop_notification_service.h" 35 #include "chrome/browser/notifications/desktop_notification_service.h"
36 #include "chrome/browser/prefs/incognito_mode_prefs.h" 36 #include "chrome/browser/prefs/incognito_mode_prefs.h"
37 #include "chrome/browser/prefs/pref_service.h" 37 #include "chrome/browser/prefs/pref_service.h"
38 #include "chrome/browser/prefs/session_startup_pref.h" 38 #include "chrome/browser/prefs/session_startup_pref.h"
39 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" 39 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h"
40 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h" 40 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h"
41 #include "chrome/browser/printing/print_dialog_cloud.h" 41 #include "chrome/browser/printing/print_dialog_cloud.h"
42 #include "chrome/browser/profiles/profile.h" 42 #include "chrome/browser/profiles/profile.h"
43 #include "chrome/browser/profiles/profile_io_data.h" 43 #include "chrome/browser/profiles/profile_io_data.h"
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 660
661 bool BrowserInit::LaunchWithProfile::Launch( 661 bool BrowserInit::LaunchWithProfile::Launch(
662 Profile* profile, 662 Profile* profile,
663 const std::vector<GURL>& urls_to_open, 663 const std::vector<GURL>& urls_to_open,
664 bool process_startup) { 664 bool process_startup) {
665 DCHECK(profile); 665 DCHECK(profile);
666 profile_ = profile; 666 profile_ = profile;
667 667
668 if (command_line_.HasSwitch(switches::kDnsLogDetails)) 668 if (command_line_.HasSwitch(switches::kDnsLogDetails))
669 chrome_browser_net::EnablePredictorDetailedLog(true); 669 chrome_browser_net::EnablePredictorDetailedLog(true);
670 if (command_line_.HasSwitch(switches::kDnsPrefetchDisable) && 670 if (command_line_.HasSwitch(switches::kDnsPrefetchDisable))
671 profile->GetNetworkPredictor()) { 671 chrome_browser_net::EnablePredictor(false);
672 profile->GetNetworkPredictor()->EnablePredictor(false);
673 }
674 672
675 if (command_line_.HasSwitch(switches::kDumpHistogramsOnExit)) 673 if (command_line_.HasSwitch(switches::kDumpHistogramsOnExit))
676 base::StatisticsRecorder::set_dump_on_exit(true); 674 base::StatisticsRecorder::set_dump_on_exit(true);
677 675
678 if (command_line_.HasSwitch(switches::kRemoteShellPort)) { 676 if (command_line_.HasSwitch(switches::kRemoteShellPort)) {
679 std::string port_str = 677 std::string port_str =
680 command_line_.GetSwitchValueASCII(switches::kRemoteShellPort); 678 command_line_.GetSwitchValueASCII(switches::kRemoteShellPort);
681 int64 port; 679 int64 port;
682 if (base::StringToInt64(port_str, &port) && port > 0 && port < 65535) { 680 if (base::StringToInt64(port_str, &port) && port > 0 && port < 65535) {
683 g_browser_process->InitDevToolsLegacyProtocolHandler( 681 g_browser_process->InitDevToolsLegacyProtocolHandler(
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 return false; 1480 return false;
1483 automation->SetExpectedTabCount(expected_tabs); 1481 automation->SetExpectedTabCount(expected_tabs);
1484 1482
1485 AutomationProviderList* list = 1483 AutomationProviderList* list =
1486 g_browser_process->InitAutomationProviderList(); 1484 g_browser_process->InitAutomationProviderList();
1487 DCHECK(list); 1485 DCHECK(list);
1488 list->AddProvider(automation); 1486 list->AddProvider(automation);
1489 1487
1490 return true; 1488 return true;
1491 } 1489 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_view_host_observer.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698