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

Unified Diff: chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc

Issue 252643004: Remove --use-spelling-suggestions flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « no previous file | chrome/browser/spellchecker/spelling_service_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc
diff --git a/chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc b/chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc
index 1cde7c6fa16b094558b1d428c9b5af9f94809018..84b4fd468c5985758e11b43f2f7e639f8357a02a 100644
--- a/chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc
+++ b/chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc
@@ -324,11 +324,9 @@ IN_PROC_BROWSER_TEST_F(SpellingMenuObserverTest, EnableSpellingService) {
// SpellingServiceClient::SUGGEST is on.
IN_PROC_BROWSER_TEST_F(SpellingMenuObserverTest, SeparatorAfterSuggestions) {
menu()->GetPrefs()->SetBoolean(prefs::kSpellCheckUseSpellingService, true);
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- command_line->AppendSwitch(switches::kUseSpellingSuggestions);
- // Force a non-empty locale so SUGGEST is available.
- menu()->GetPrefs()->SetString(prefs::kSpellCheckDictionary, "en");
+ // Force a non-empty and non-"en" locale so SUGGEST is available.
groby-ooo-7-16 2014/04/28 22:52:30 Since we're forcing "fr" in two places now, I'd s
please use gerrit instead 2014/04/29 03:11:33 Done.
+ menu()->GetPrefs()->SetString(prefs::kSpellCheckDictionary, "fr");
EXPECT_TRUE(SpellingServiceClient::IsAvailable(menu()->GetProfile(),
SpellingServiceClient::SUGGEST));
@@ -468,8 +466,7 @@ IN_PROC_BROWSER_TEST_F(SpellingMenuObserverTest, SuggestionsForceTopSeparator) {
// Case #3. Misspelled word, suggestion service is on.
Reset(false);
menu()->GetPrefs()->SetBoolean(prefs::kSpellCheckUseSpellingService, true);
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- command_line->AppendSwitch(switches::kUseSpellingSuggestions);
+ menu()->GetPrefs()->SetString(prefs::kSpellCheckDictionary, "fr");
groby-ooo-7-16 2014/04/28 22:52:30 See above re: "fr"
please use gerrit instead 2014/04/29 03:11:33 Done.
InitMenu("asdfkj", NULL);
// Should have at least 2 entries. Separator, suggestion.
« no previous file with comments | « no previous file | chrome/browser/spellchecker/spelling_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698