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/tab_contents/spelling_menu_observer_browsertest.cc

Issue 11829042: [Spellcheck] Turning spelling service on by default. Adding command line flag to turn spelling serv… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: actually rebasing this time Created 7 years, 11 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/spellchecker/spelling_service_client_unittest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/spelling_menu_observer_browsertest.cc
diff --git a/chrome/browser/tab_contents/spelling_menu_observer_browsertest.cc b/chrome/browser/tab_contents/spelling_menu_observer_browsertest.cc
index 2d8c5e78581c65030fcaacbb748c2d6926944ac2..c7969281c149ed976c6e992f1d9cec8aa0a4b556 100644
--- a/chrome/browser/tab_contents/spelling_menu_observer_browsertest.cc
+++ b/chrome/browser/tab_contents/spelling_menu_observer_browsertest.cc
@@ -327,6 +327,8 @@ IN_PROC_BROWSER_TEST_F(SpellingMenuObserverTest, SeparatorAfterSuggestions) {
new SpellingMenuObserver(menu.get()));
menu->SetObserver(observer.get());
menu->GetPrefs()->SetBoolean(prefs::kSpellCheckUseSpellingService, true);
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
+ command_line->AppendSwitch(switches::kUseSpellingSuggestions);
// Make sure we can pretend to handle the JSON request.
menu->CreateRequestContext();
@@ -372,8 +374,6 @@ IN_PROC_BROWSER_TEST_F(SpellingMenuObserverTest,
new SpellingMenuObserver(menu.get()));
menu->SetObserver(observer.get());
menu->GetPrefs()->SetBoolean(prefs::kSpellCheckUseSpellingService, true);
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- command_line->AppendSwitch(switches::kUseSpellingService);
// Make sure we can pretend to handle the JSON request.
menu->CreateRequestContext();
« no previous file with comments | « chrome/browser/spellchecker/spelling_service_client_unittest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698