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

Unified Diff: chrome/browser/prefs/session_startup_pref_unittest.cc

Issue 9353019: Revert 120803 - [uber] Redoing the homepage selection UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prefs/session_startup_pref.cc ('k') | chrome/browser/resources/options2/browser_options.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/session_startup_pref_unittest.cc
===================================================================
--- chrome/browser/prefs/session_startup_pref_unittest.cc (revision 120816)
+++ chrome/browser/prefs/session_startup_pref_unittest.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -56,19 +56,3 @@
result = SessionStartupPref::GetStartupPref(pref_service_.get());
EXPECT_EQ(3u, result.urls.size());
}
-
-TEST_F(SessionStartupPrefTest, HomePageMigration) {
- pref_service_->RegisterStringPref(prefs::kHomePage, "http://google.com/");
-
- // By design, it's impossible to set the 'restore on startup' pref to 0
- // ("open the homepage") using SessionStartupPref::SetStartupPref(), so set it
- // using the pref service directly.
- pref_service_->SetInteger(prefs::kRestoreOnStartup, /*kPrefValueHomePage*/ 0);
- pref_service_->SetString(prefs::kHomePage, "http://chromium.org/");
-
- SessionStartupPref pref = SessionStartupPref::GetStartupPref(
- pref_service_.get());
- EXPECT_EQ(SessionStartupPref::URLS, pref.type);
- EXPECT_EQ(1U, pref.urls.size());
- EXPECT_EQ(GURL("http://chromium.org/"), pref.urls[0]);
-}
« no previous file with comments | « chrome/browser/prefs/session_startup_pref.cc ('k') | chrome/browser/resources/options2/browser_options.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698