Index: chrome/browser/profile_resetter/profile_resetter_unittest.cc |
diff --git a/chrome/browser/profile_resetter/profile_resetter_unittest.cc b/chrome/browser/profile_resetter/profile_resetter_unittest.cc |
index e60f96b2aa3f46e7dd3adfd0352ef37f08dcd9bc..b3af5aa0a6e18e8a231367848c1855e403734cb4 100644 |
--- a/chrome/browser/profile_resetter/profile_resetter_unittest.cc |
+++ b/chrome/browser/profile_resetter/profile_resetter_unittest.cc |
@@ -24,7 +24,6 @@ |
#include "chrome/common/pref_names.h" |
#include "chrome/test/base/browser_with_test_window_test.h" |
#include "components/content_settings/core/browser/host_content_settings_map.h" |
-#include "components/google/core/browser/google_pref_names.h" |
#include "components/search_engines/template_url_service.h" |
#include "components/search_engines/template_url_service_client.h" |
#include "content/public/browser/web_contents.h" |
@@ -424,10 +423,6 @@ TEST_F(ProfileResetterTest, ResetNothing) { |
} |
TEST_F(ProfileResetterTest, ResetDefaultSearchEngineNonOrganic) { |
- PrefService* prefs = profile()->GetPrefs(); |
- DCHECK(prefs); |
- prefs->SetString(prefs::kLastPromptedGoogleURL, "http://www.foo.com/"); |
- |
ResetAndWait(ProfileResetter::DEFAULT_SEARCH_ENGINE, kDistributionConfig); |
TemplateURLService* model = |
@@ -437,17 +432,11 @@ TEST_F(ProfileResetterTest, ResetDefaultSearchEngineNonOrganic) { |
EXPECT_EQ(base::ASCIIToUTF16("first"), default_engine->short_name()); |
EXPECT_EQ(base::ASCIIToUTF16("firstkey"), default_engine->keyword()); |
EXPECT_EQ("http://www.foo.com/s?q={searchTerms}", default_engine->url()); |
- |
- EXPECT_EQ("", prefs->GetString(prefs::kLastPromptedGoogleURL)); |
} |
TEST_F(ProfileResetterTest, ResetDefaultSearchEnginePartially) { |
// Search engine's logic is tested by |
// TemplateURLServiceTest.RepairPrepopulatedSearchEngines. |
- PrefService* prefs = profile()->GetPrefs(); |
- DCHECK(prefs); |
- prefs->SetString(prefs::kLastPromptedGoogleURL, "http://www.foo.com/"); |
- |
// Make sure TemplateURLService has loaded. |
ResetAndWait(ProfileResetter::DEFAULT_SEARCH_ENGINE); |
@@ -459,7 +448,6 @@ TEST_F(ProfileResetterTest, ResetDefaultSearchEnginePartially) { |
ResetAndWait(ProfileResetter::DEFAULT_SEARCH_ENGINE); |
EXPECT_EQ(urls, model->GetTemplateURLs()); |
- EXPECT_EQ(std::string(), prefs->GetString(prefs::kLastPromptedGoogleURL)); |
} |
TEST_F(ProfileResetterTest, ResetHomepageNonOrganic) { |