From 2baf83d75ea5d1233d3ddcf8e28aa4f4466c115c Mon Sep 17 00:00:00 2001 From: "finnur@google.com" Date: Wed, 30 Jul 2008 05:58:17 +0000 Subject: Fix 1295677: REGRESSION: Import SETS startup page to imported home page. We had only kHomePage pref before, which if blank/set to chrome-internal: meant that the New Tab page should be shown when Home is pressed. Now we add a pref called kHomePageIsNewTabPage for this purpose, which allows us to set the kHomePage value during import without actually using it as the HomePage (effectively importing home page becomes importing a default suggestion for when the users want a home page instead of the New Tab page). BUG=1295677 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_commands.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'chrome/browser/browser_commands.cc') diff --git a/chrome/browser/browser_commands.cc b/chrome/browser/browser_commands.cc index 686016d..974a4f3 100644 --- a/chrome/browser/browser_commands.cc +++ b/chrome/browser/browser_commands.cc @@ -847,12 +847,7 @@ void Browser::Reload() { } void Browser::Home() { - GURL homepage_url(URLFixerUpper::FixupURL( - profile_->GetPrefs()->GetString(prefs::kHomePage), - std::wstring())); - if (!homepage_url.is_valid()) - homepage_url = NewTabUIURL(); - + GURL homepage_url = GetHomePage(); GetSelectedTabContents()->controller()->LoadURL( homepage_url, PageTransition::AUTO_BOOKMARK); } -- cgit v1.1