summaryrefslogtreecommitdiffstats
path: root/chrome/common/temp_scaffolding_stubs.cc
diff options
context:
space:
mode:
authorbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-01 20:24:01 +0000
committerbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-01 20:24:01 +0000
commitb112a4cc460212188d353b995a055f6e14029ba3 (patch)
treed4d9d51c6f59535b3b0b993db128c4ca2558858a /chrome/common/temp_scaffolding_stubs.cc
parent721e54858f0fb90a19ca3ea697b6f37ba127850d (diff)
downloadchromium_src-b112a4cc460212188d353b995a055f6e14029ba3.zip
chromium_src-b112a4cc460212188d353b995a055f6e14029ba3.tar.gz
chromium_src-b112a4cc460212188d353b995a055f6e14029ba3.tar.bz2
Will the real BrowserProcessImpl please stand up?
Review URL: http://codereview.chromium.org/19743 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9030 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.cc')
-rw-r--r--chrome/common/temp_scaffolding_stubs.cc81
1 files changed, 28 insertions, 53 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc
index 7c25a78..e0824c4 100644
--- a/chrome/common/temp_scaffolding_stubs.cc
+++ b/chrome/common/temp_scaffolding_stubs.cc
@@ -12,6 +12,7 @@
#include "build/build_config.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_shutdown.h"
+#include "chrome/browser/first_run.h"
#include "chrome/browser/history/in_memory_history_backend.h"
#include "chrome/browser/plugin_service.h"
#include "chrome/browser/profile_manager.h"
@@ -25,59 +26,6 @@
// 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),
- created_local_state_(), created_metrics_service_(),
- created_profile_manager_() {
- g_browser_process = this;
-}
-
-BrowserProcessImpl::~BrowserProcessImpl() {
- g_browser_process = NULL;
-}
-
-void BrowserProcessImpl::CreateLocalState() {
- DCHECK(!created_local_state_ && local_state_.get() == NULL);
- created_local_state_ = true;
-
- std::wstring local_state_path;
- PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path);
- local_state_.reset(new PrefService(local_state_path));
-}
-
-void BrowserProcessImpl::CreateMetricsService() {
- DCHECK(!created_metrics_service_ && metrics_service_.get() == NULL);
- created_metrics_service_ = true;
-
- metrics_service_.reset(new MetricsService);
-}
-
-void BrowserProcessImpl::CreateProfileManager() {
- DCHECK(!created_profile_manager_ && profile_manager_.get() == NULL);
- created_profile_manager_ = true;
-
- profile_manager_.reset(new ProfileManager());
-}
-
-MetricsService* BrowserProcessImpl::metrics_service() {
- if (!created_metrics_service_)
- CreateMetricsService();
- return metrics_service_.get();
-}
-
-ProfileManager* BrowserProcessImpl::profile_manager() {
- if (!created_profile_manager_)
- CreateProfileManager();
- return profile_manager_.get();
-}
-
-PrefService* BrowserProcessImpl::local_state() {
- if (!created_local_state_)
- CreateLocalState();
- return local_state_.get();
-}
-
//--------------------------------------------------------------------------
UserDataManager* UserDataManager::instance_ = NULL;
@@ -111,6 +59,33 @@ void Shutdown() { }
void OnShutdownStarting(ShutdownType type) { }
}
+
+// static
+bool FirstRun::IsChromeFirstRun() { return false; }
+
+// static
+bool FirstRun::ProcessMasterPreferences(const FilePath& user_data_dir,
+ const FilePath& master_prefs_path,
+ int* preference_details) {
+ return false;
+}
+
+// static
+int FirstRun::ImportNow(Profile* profile, const CommandLine& cmdline) {
+ return 0;
+}
+
+// static
+bool Upgrade::IsBrowserAlreadyRunning() { return false; }
+
+// static
+bool Upgrade::RelaunchChromeBrowser(const CommandLine& command_line) {
+ return true;
+}
+
+// static
+bool Upgrade::SwapNewChromeExeIfPresent() { return true; }
+
void OpenFirstRunDialog(Profile* profile) { }
GURL NewTabUIURL() {