diff options
author | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-11 21:40:55 +0000 |
---|---|---|
committer | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-11 21:40:55 +0000 |
commit | 05e789d0a4728cf8cd2c153443d78992c624a945 (patch) | |
tree | 333067a9e46a1c27f8330ad2607ed02ac7db2a37 /chrome/browser/first_run.h | |
parent | 48ca901238509dd4c5f7bb30c66ef36f5dafc828 (diff) | |
download | chromium_src-05e789d0a4728cf8cd2c153443d78992c624a945.zip chromium_src-05e789d0a4728cf8cd2c153443d78992c624a945.tar.gz chromium_src-05e789d0a4728cf8cd2c153443d78992c624a945.tar.bz2 |
Do not import homepage on First Run if a homepage is given in master preferences.
BUG=9048
Review URL: http://codereview.chromium.org/164291
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23085 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run.h')
-rw-r--r-- | chrome/browser/first_run.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/first_run.h b/chrome/browser/first_run.h index 0914e9f..41aba0c 100644 --- a/chrome/browser/first_run.h +++ b/chrome/browser/first_run.h @@ -70,7 +70,8 @@ class FirstRun { static bool ProcessMasterPreferences(const FilePath& user_data_dir, const FilePath& master_prefs_path, std::vector<std::wstring>* new_tabs, - int* ping_delay); + int* ping_delay, + bool* homepage_defined); // Sets the kShouldShowFirstRunBubble local state pref so that the browser // shows the bubble once the main message loop gets going. Returns false if @@ -148,8 +149,12 @@ class FirstRunBrowserProcess : public BrowserProcessImpl { // |profile| and perhaps some other tasks. // |process_singleton| is used to lock the handling of CopyData messages // while the First Run UI is visible. +// |homepage_defined| true indicates that homepage is defined in master +// preferences and should not be imported from another browser. // Returns true if the user clicked "Start", false if the user pressed "Cancel" // or closed the dialog. -bool OpenFirstRunDialog(Profile* profile, ProcessSingleton* process_singleton); +bool OpenFirstRunDialog(Profile* profile, + bool homepage_defined, + ProcessSingleton* process_singleton); #endif // CHROME_BROWSER_FIRST_RUN_H_ |