OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/webui/options/options_browsertest.h" | 5 #include "chrome/browser/ui/webui/options/options_browsertest.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | |
8 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
9 #include "base/values.h" | 10 #include "base/values.h" |
10 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
14 #include "chrome/common/chrome_switches.h" | |
13 #include "content/public/browser/navigation_controller.h" | 15 #include "content/public/browser/navigation_controller.h" |
14 #include "content/public/browser/navigation_entry.h" | 16 #include "content/public/browser/navigation_entry.h" |
15 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
16 #include "content/public/browser/web_ui.h" | 18 #include "content/public/browser/web_ui.h" |
17 #include "url/gurl.h" | 19 #include "url/gurl.h" |
18 | 20 |
19 using content::NavigationController; | 21 using content::NavigationController; |
20 using content::NavigationEntry; | 22 using content::NavigationEntry; |
21 using content::WebUIMessageHandler; | 23 using content::WebUIMessageHandler; |
22 | 24 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 ASSERT_TRUE(args->GetString(0, &pref_name)); | 63 ASSERT_TRUE(args->GetString(0, &pref_name)); |
62 const base::Value* pref_value; | 64 const base::Value* pref_value; |
63 ASSERT_TRUE(args->Get(1, &pref_value)); | 65 ASSERT_TRUE(args->Get(1, &pref_value)); |
64 | 66 |
65 browser()->profile()->GetPrefs()->Set(pref_name.c_str(), *pref_value); | 67 browser()->profile()->GetPrefs()->Set(pref_name.c_str(), *pref_value); |
66 } | 68 } |
67 | 69 |
68 content::WebUIMessageHandler* OptionsBrowserTest::GetMockMessageHandler() { | 70 content::WebUIMessageHandler* OptionsBrowserTest::GetMockMessageHandler() { |
69 return this; | 71 return this; |
70 } | 72 } |
73 | |
74 void OptionsBrowserTest::SetUpCommandLine( | |
please use gerrit instead
2015/06/23 00:43:06
Not a good idea to append --enable-multilingual-sp
Julius
2015/06/24 21:17:59
I just created a MultilanguageOptionsBrowserTest t
| |
75 base::CommandLine* command_line) { | |
76 WebUIBrowserTest::SetUpCommandLine(command_line); | |
77 command_line->AppendSwitch(switches::kEnableMultilingualSpellChecker); | |
78 } | |
OLD | NEW |