Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
|
please use gerrit instead
2015/06/16 00:31:17
2015
Julius
2015/06/17 00:59:52
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/webui/options/multilanguage_options_webui_browsertes t.h" | |
| 6 | |
| 7 #include "base/command_line.h" | |
| 8 #include "base/prefs/pref_service.h" | |
| 9 #include "chrome/browser/prefs/browser_prefs.h" | |
| 10 #include "chrome/browser/ui/browser_window.h" | |
| 11 #include "chrome/common/chrome_switches.h" | |
| 12 #include "chrome/common/pref_names.h" | |
| 13 | |
| 14 MultilanguageOptionsWebUIBrowserTest::MultilanguageOptionsWebUIBrowserTest() { | |
| 15 } | |
| 16 | |
| 17 MultilanguageOptionsWebUIBrowserTest::~MultilanguageOptionsWebUIBrowserTest() { | |
| 18 } | |
| 19 | |
| 20 void MultilanguageOptionsWebUIBrowserTest::SetUpOnMainThread() { | |
| 21 WebUIBrowserTest::SetUpOnMainThread(); | |
| 22 #if defined(OS_CHROMEOS) | |
| 23 auto setting_name = prefs::kLanguagePreferredLanguages; | |
|
please use gerrit instead
2015/06/16 00:31:17
It's just an std::string. No need to auto such a s
Julius
2015/06/17 00:59:52
Done.
| |
| 24 #else | |
| 25 auto setting_name = prefs::kAcceptLanguages; | |
| 26 #endif | |
| 27 | |
| 28 browser()->profile()->GetPrefs()->SetString(setting_name, "en-US,es,fr"); | |
| 29 } | |
| 30 | |
| 31 void MultilanguageOptionsWebUIBrowserTest::SetUpCommandLine( | |
| 32 base::CommandLine* command_line) { | |
| 33 WebUIBrowserTest::SetUpCommandLine(command_line); | |
| 34 command_line->AppendSwitch(switches::kEnableMultilingualSpellChecker); | |
| 35 } | |
| OLD | NEW |