OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/spellcheck_common.h" | 5 #include "chrome/common/spellcheck_common.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/prefs/pref_member.h" | |
please use gerrit instead
2015/07/07 01:30:40
Unused. Remove.
Julius
2015/07/07 22:16:25
Done.
| |
12 #include "base/prefs/pref_service.h" | |
please use gerrit instead
2015/07/07 01:30:40
Unused. Remove.
Julius
2015/07/07 22:16:25
Done.
| |
11 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/common/pref_names.h" | |
please use gerrit instead
2015/07/07 01:30:40
Unused. Remove.
Julius
2015/07/07 22:16:25
Done.
| |
12 #include "third_party/icu/source/common/unicode/uloc.h" | 15 #include "third_party/icu/source/common/unicode/uloc.h" |
13 #include "third_party/icu/source/common/unicode/urename.h" | 16 #include "third_party/icu/source/common/unicode/urename.h" |
14 #include "third_party/icu/source/common/unicode/utypes.h" | 17 #include "third_party/icu/source/common/unicode/utypes.h" |
15 | 18 |
16 namespace chrome { | 19 namespace chrome { |
17 namespace spellcheck_common { | 20 namespace spellcheck_common { |
18 | 21 |
19 struct LanguageRegion { | 22 struct LanguageRegion { |
20 const char* language; // The language. | 23 const char* language; // The language. |
21 const char* language_region; // language & region, used by dictionaries. | 24 const char* language_region; // language & region, used by dictionaries. |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
183 *country_code = std::string(country); | 186 *country_code = std::string(country); |
184 } | 187 } |
185 | 188 |
186 bool IsMultilingualSpellcheckEnabled() { | 189 bool IsMultilingualSpellcheckEnabled() { |
187 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 190 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
188 switches::kEnableMultilingualSpellChecker); | 191 switches::kEnableMultilingualSpellChecker); |
189 } | 192 } |
190 | 193 |
191 } // namespace spellcheck_common | 194 } // namespace spellcheck_common |
192 } // namespace chrome | 195 } // namespace chrome |
OLD | NEW |