diff options
author | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-30 23:52:16 +0000 |
---|---|---|
committer | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-30 23:52:16 +0000 |
commit | f211befbc09c492a5c882fd4f08d71a69ea7c1fa (patch) | |
tree | 8f97254bdec8ed8d80a377453dd7ecb3ca3e420b /chrome/common/temp_scaffolding_stubs.cc | |
parent | 2840577282782b79e48252402785fb53a1d63dcf (diff) | |
download | chromium_src-f211befbc09c492a5c882fd4f08d71a69ea7c1fa.zip chromium_src-f211befbc09c492a5c882fd4f08d71a69ea7c1fa.tar.gz chromium_src-f211befbc09c492a5c882fd4f08d71a69ea7c1fa.tar.bz2 |
Bring up BrowserInit on MacOS X.
Review URL: http://codereview.chromium.org/19695
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8998 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.cc')
-rw-r--r-- | chrome/common/temp_scaffolding_stubs.cc | 74 |
1 files changed, 13 insertions, 61 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc index 735a48e7..957f32b 100644 --- a/chrome/common/temp_scaffolding_stubs.cc +++ b/chrome/common/temp_scaffolding_stubs.cc @@ -20,6 +20,9 @@ #include "chrome/common/chrome_paths.h" #include "chrome/common/pref_service.h" +// static +size_t SessionRestore::num_tabs_to_load_ = 0; + BrowserProcessImpl::BrowserProcessImpl(const CommandLine& command_line) : main_notification_service_(new NotificationService), memory_model_(HIGH_MEMORY_MODEL), @@ -75,63 +78,6 @@ PrefService* BrowserProcessImpl::local_state() { //-------------------------------------------------------------------------- -static bool s_in_startup = false; - -bool BrowserInit::ProcessCommandLine(const CommandLine& parsed_command_line, - const std::wstring& cur_dir, - PrefService* prefs, bool process_startup, - Profile* profile, int* return_code) { - return LaunchBrowser(parsed_command_line, profile, cur_dir, - process_startup, return_code); -} - -bool BrowserInit::LaunchBrowser(const CommandLine& parsed_command_line, - Profile* profile, const std::wstring& cur_dir, - bool process_startup, int* return_code) { - s_in_startup = process_startup; - bool result = LaunchBrowserImpl(parsed_command_line, profile, cur_dir, - process_startup, return_code); - s_in_startup = false; - return result; -} - -bool BrowserInit::LaunchBrowserImpl(const CommandLine& parsed_command_line, - Profile* profile, - const std::wstring& cur_dir, - bool process_startup, - int* return_code) { - DCHECK(profile); - - // this code is a simplification of BrowserInit::LaunchWithProfile::Launch() - std::vector<GURL> urls_to_open; - urls_to_open.push_back(GURL("http://dev.chromium.org")); - urls_to_open.push_back(GURL("http://crbug.com")); - urls_to_open.push_back(GURL("http://icanhascheezeburger.com")); - Browser* browser = NULL; - browser = OpenURLsInBrowser(browser, profile, urls_to_open); - - return true; -} - -// a simplification of BrowserInit::LaunchWithProfile::OpenURLsInBrowser -Browser* BrowserInit::OpenURLsInBrowser( - Browser* browser, - Profile* profile, - const std::vector<GURL>& urls) { - DCHECK(!urls.empty()); - if (!browser || browser->type() != Browser::TYPE_NORMAL) - browser = Browser::Create(profile); - - for (size_t i = 0; i < urls.size(); ++i) { - browser->AddTabWithURL( - urls[i], GURL(), PageTransition::START_PAGE, (i == 0), NULL); - } - browser->window()->Show(); - return browser; -} - -//-------------------------------------------------------------------------- - UserDataManager* UserDataManager::instance_ = NULL; UserDataManager* UserDataManager::Create() { @@ -157,10 +103,6 @@ bool ShellIntegration::IsDefaultBrowser() { //-------------------------------------------------------------------------- -namespace browser { -void RegisterAllPrefs(PrefService*, PrefService*) { } -} // namespace browser - namespace browser_shutdown { void ReadLastShutdownInfo() { } void Shutdown() { } @@ -253,3 +195,13 @@ BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { return NULL; } #endif + +//-------------------------------------------------------------------------- + +namespace chrome_browser_net { + +void EnableDnsDetailedLog(bool) {} + +void EnableDnsPrefetch(bool) {} + +} // namespace chrome_browser_net |