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

Unified Diff: chrome/browser/spellchecker/spellcheck_service_browsertest.cc

Issue 2254533003: Rename spellcheck::pref::kEnableContinuousSpellcheck to ...::kEnableSpellcheck (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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
Index: chrome/browser/spellchecker/spellcheck_service_browsertest.cc
diff --git a/chrome/browser/spellchecker/spellcheck_service_browsertest.cc b/chrome/browser/spellchecker/spellcheck_service_browsertest.cc
index 8c1cd5d3fcb3b71c3b5a09bc6258555a01a6445d..13deefa92cf75258fb5c63653c6f5f87228c98dc 100644
--- a/chrome/browser/spellchecker/spellcheck_service_browsertest.cc
+++ b/chrome/browser/spellchecker/spellcheck_service_browsertest.cc
@@ -90,7 +90,7 @@ class SpellcheckServiceBrowserTest : public InProcessBrowserTest {
void InitSpellcheck(bool enable_spellcheck,
const std::string& single_dictionary,
const std::string& multiple_dictionaries) {
- prefs_->SetBoolean(spellcheck::prefs::kEnableContinuousSpellcheck,
+ prefs_->SetBoolean(spellcheck::prefs::kEnableSpellcheck,
enable_spellcheck);
prefs_->SetString(spellcheck::prefs::kSpellCheckDictionary,
single_dictionary);
@@ -107,7 +107,7 @@ class SpellcheckServiceBrowserTest : public InProcessBrowserTest {
void EnableSpellcheck(bool enable_spellcheck) {
ScopedPreferenceChange scope(&renderer_->sink());
- prefs_->SetBoolean(spellcheck::prefs::kEnableContinuousSpellcheck,
+ prefs_->SetBoolean(spellcheck::prefs::kEnableSpellcheck,
enable_spellcheck);
}
@@ -360,13 +360,13 @@ IN_PROC_BROWSER_TEST_F(SpellcheckServiceBrowserTest,
base::ListValue dictionaries;
dictionaries.AppendString("en-US");
GetPrefs()->Set(spellcheck::prefs::kSpellCheckDictionaries, dictionaries);
- GetPrefs()->SetBoolean(spellcheck::prefs::kEnableContinuousSpellcheck, false);
+ GetPrefs()->SetBoolean(spellcheck::prefs::kEnableSpellcheck, false);
// Migrate the preferences.
SpellcheckServiceFactory::GetForContext(GetContext());
EXPECT_FALSE(
- GetPrefs()->GetBoolean(spellcheck::prefs::kEnableContinuousSpellcheck));
+ GetPrefs()->GetBoolean(spellcheck::prefs::kEnableSpellcheck));
EXPECT_EQ(1U, GetPrefs()
->GetList(spellcheck::prefs::kSpellCheckDictionaries)
->GetSize());
@@ -379,13 +379,13 @@ IN_PROC_BROWSER_TEST_F(SpellcheckServiceBrowserTest,
dictionaries.AppendString("en-US");
dictionaries.AppendString("fr");
GetPrefs()->Set(spellcheck::prefs::kSpellCheckDictionaries, dictionaries);
- GetPrefs()->SetBoolean(spellcheck::prefs::kEnableContinuousSpellcheck, true);
+ GetPrefs()->SetBoolean(spellcheck::prefs::kEnableSpellcheck, true);
// Should not migrate any preferences.
SpellcheckServiceFactory::GetForContext(GetContext());
EXPECT_TRUE(
- GetPrefs()->GetBoolean(spellcheck::prefs::kEnableContinuousSpellcheck));
+ GetPrefs()->GetBoolean(spellcheck::prefs::kEnableSpellcheck));
EXPECT_EQ(2U, GetPrefs()
->GetList(spellcheck::prefs::kSpellCheckDictionaries)
->GetSize());
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_service.cc ('k') | chrome/browser/spellchecker/spelling_service_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698