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

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

Issue 2759333002: Move chrome-specific SerializedNavigation code to chrome/. (Closed)
Patch Set: Fix Android Created 3 years, 9 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
OLDNEW
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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #include "chrome/browser/prefs/incognito_mode_prefs.h" 78 #include "chrome/browser/prefs/incognito_mode_prefs.h"
79 #include "chrome/browser/prefs/pref_metrics_service.h" 79 #include "chrome/browser/prefs/pref_metrics_service.h"
80 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" 80 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h"
81 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h" 81 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h"
82 #include "chrome/browser/process_singleton.h" 82 #include "chrome/browser/process_singleton.h"
83 #include "chrome/browser/profiles/profile.h" 83 #include "chrome/browser/profiles/profile.h"
84 #include "chrome/browser/profiles/profile_attributes_entry.h" 84 #include "chrome/browser/profiles/profile_attributes_entry.h"
85 #include "chrome/browser/profiles/profile_attributes_storage.h" 85 #include "chrome/browser/profiles/profile_attributes_storage.h"
86 #include "chrome/browser/profiles/profile_manager.h" 86 #include "chrome/browser/profiles/profile_manager.h"
87 #include "chrome/browser/profiles/profiles_state.h" 87 #include "chrome/browser/profiles/profiles_state.h"
88 #include "chrome/browser/sessions/chrome_serialized_navigation_driver.h"
88 #include "chrome/browser/shell_integration.h" 89 #include "chrome/browser/shell_integration.h"
89 #include "chrome/browser/tracing/navigation_tracing.h" 90 #include "chrome/browser/tracing/navigation_tracing.h"
90 #include "chrome/browser/translate/translate_service.h" 91 #include "chrome/browser/translate/translate_service.h"
91 #include "chrome/browser/ui/app_list/app_list_service.h" 92 #include "chrome/browser/ui/app_list/app_list_service.h"
92 #include "chrome/browser/ui/browser.h" 93 #include "chrome/browser/ui/browser.h"
93 #include "chrome/browser/ui/browser_finder.h" 94 #include "chrome/browser/ui/browser_finder.h"
94 #include "chrome/browser/ui/javascript_dialogs/chrome_javascript_native_dialog_f actory.h" 95 #include "chrome/browser/ui/javascript_dialogs/chrome_javascript_native_dialog_f actory.h"
95 #include "chrome/browser/ui/profile_error_dialog.h" 96 #include "chrome/browser/ui/profile_error_dialog.h"
96 #include "chrome/browser/ui/startup/bad_flags_prompt.h" 97 #include "chrome/browser/ui/startup/bad_flags_prompt.h"
97 #include "chrome/browser/ui/startup/default_browser_prompt.h" 98 #include "chrome/browser/ui/startup/default_browser_prompt.h"
(...skipping 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1811 // instead? 1812 // instead?
1812 CloudPrintProxyServiceFactory::GetForProfile(profile_); 1813 CloudPrintProxyServiceFactory::GetForProfile(profile_);
1813 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) 1814 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW)
1814 1815
1815 // Start watching all browser threads for responsiveness. 1816 // Start watching all browser threads for responsiveness.
1816 metrics::MetricsService::SetExecutionPhase( 1817 metrics::MetricsService::SetExecutionPhase(
1817 metrics::ExecutionPhase::THREAD_WATCHER_START, 1818 metrics::ExecutionPhase::THREAD_WATCHER_START,
1818 g_browser_process->local_state()); 1819 g_browser_process->local_state());
1819 ThreadWatcherList::StartWatchingAll(parsed_command_line()); 1820 ThreadWatcherList::StartWatchingAll(parsed_command_line());
1820 1821
1822 // This has to come before the first GetInstance() call. PreBrowserStart()
1823 // seems like a reasonable place to put this, except on Android,
1824 // OfflinePageInfoHandler::Register() below calls GetInstance().
1825 // TODO(thestig): See if the Android code below can be moved to later.
1826 sessions::ContentSerializedNavigationDriver::SetInstance(
1827 ChromeSerializedNavigationDriver::GetInstance());
1828
1821 #if defined(OS_ANDROID) 1829 #if defined(OS_ANDROID)
1822 ThreadWatcherAndroid::RegisterApplicationStatusListener(); 1830 ThreadWatcherAndroid::RegisterApplicationStatusListener();
1823 offline_pages::OfflinePageInfoHandler::Register(); 1831 offline_pages::OfflinePageInfoHandler::Register();
1824 #endif // defined(OS_ANDROID) 1832 #endif // defined(OS_ANDROID)
1825 1833
1826 #if !defined(DISABLE_NACL) 1834 #if !defined(DISABLE_NACL)
1827 BrowserThread::PostTask( 1835 BrowserThread::PostTask(
1828 BrowserThread::IO, 1836 BrowserThread::IO,
1829 FROM_HERE, 1837 FROM_HERE,
1830 base::Bind(nacl::NaClProcessHost::EarlyStartup)); 1838 base::Bind(nacl::NaClProcessHost::EarlyStartup));
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2093 chromeos::CrosSettings::Shutdown(); 2101 chromeos::CrosSettings::Shutdown();
2094 #endif // defined(OS_CHROMEOS) 2102 #endif // defined(OS_CHROMEOS)
2095 #endif // defined(OS_ANDROID) 2103 #endif // defined(OS_ANDROID)
2096 } 2104 }
2097 2105
2098 // Public members: 2106 // Public members:
2099 2107
2100 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 2108 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
2101 chrome_extra_parts_.push_back(parts); 2109 chrome_extra_parts_.push_back(parts);
2102 } 2110 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698