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

Side by Side Diff: chrome/browser/spellchecker/spelling_service_client.cc

Issue 11740018: Cleanup: Remove more unneeded browser_thread.h includes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/browser/spellchecker/spelling_service_client.h" 5 #include "chrome/browser/spellchecker/spelling_service_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/json/string_escape.h" 9 #include "base/json/string_escape.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/stringprintf.h" 12 #include "base/stringprintf.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/prefs/pref_service.h" 15 #include "chrome/browser/prefs/pref_service.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
18 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
19 #include "chrome/common/spellcheck_result.h" 19 #include "chrome/common/spellcheck_result.h"
20 #include "content/public/browser/browser_thread.h"
21 #include "google_apis/google_api_keys.h" 20 #include "google_apis/google_api_keys.h"
22 #include "net/base/load_flags.h" 21 #include "net/base/load_flags.h"
23 #include "net/url_request/url_fetcher.h" 22 #include "net/url_request/url_fetcher.h"
24 #include "unicode/uloc.h" 23 #include "unicode/uloc.h"
25 24
26 // Use the public URL to the Spelling service on Chromium. 25 // Use the public URL to the Spelling service on Chromium.
27 #ifndef SPELLING_SERVICE_URL 26 #ifndef SPELLING_SERVICE_URL
28 #define SPELLING_SERVICE_URL "https://www.googleapis.com/rpc" 27 #define SPELLING_SERVICE_URL "https://www.googleapis.com/rpc"
29 #endif 28 #endif
30 29
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 if (!suggestions->GetDictionary(0, &suggestion) || 222 if (!suggestions->GetDictionary(0, &suggestion) ||
224 !suggestion->GetString("suggestion", &replacement)) { 223 !suggestion->GetString("suggestion", &replacement)) {
225 return false; 224 return false;
226 } 225 }
227 SpellCheckResult result( 226 SpellCheckResult result(
228 SpellCheckResult::SPELLING, start, length, replacement); 227 SpellCheckResult::SPELLING, start, length, replacement);
229 results->push_back(result); 228 results->push_back(result);
230 } 229 }
231 return true; 230 return true;
232 } 231 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/ui_manager.h ('k') | chrome/browser/sync/test/integration/passwords_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698