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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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/spellcheck_message_filter.h" 5 #include "chrome/browser/spellchecker/spellcheck_message_filter.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/prefs/pref_service.h"
12 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/browser/spellchecker/feedback_sender.h" 12 #include "chrome/browser/spellchecker/feedback_sender.h"
14 #include "chrome/browser/spellchecker/spellcheck_factory.h" 13 #include "chrome/browser/spellchecker/spellcheck_factory.h"
15 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" 14 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h"
16 #include "chrome/browser/spellchecker/spellcheck_service.h" 15 #include "chrome/browser/spellchecker/spellcheck_service.h"
17 #include "chrome/browser/spellchecker/spelling_service_client.h" 16 #include "chrome/browser/spellchecker/spelling_service_client.h"
18 #include "chrome/common/spellcheck_marker.h" 17 #include "chrome/common/spellcheck_marker.h"
19 #include "chrome/common/spellcheck_messages.h" 18 #include "chrome/common/spellcheck_messages.h"
19 #include "components/prefs/pref_service.h"
20 #include "content/public/browser/render_process_host.h" 20 #include "content/public/browser/render_process_host.h"
21 #include "net/url_request/url_fetcher.h" 21 #include "net/url_request/url_fetcher.h"
22 22
23 using content::BrowserThread; 23 using content::BrowserThread;
24 24
25 SpellCheckMessageFilter::SpellCheckMessageFilter(int render_process_id) 25 SpellCheckMessageFilter::SpellCheckMessageFilter(int render_process_id)
26 : BrowserMessageFilter(SpellCheckMsgStart), 26 : BrowserMessageFilter(SpellCheckMsgStart),
27 render_process_id_(render_process_id), 27 render_process_id_(render_process_id),
28 client_(new SpellingServiceClient) { 28 client_(new SpellingServiceClient) {
29 } 29 }
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 base::Unretained(this), 181 base::Unretained(this),
182 route_id, 182 route_id,
183 identifier, 183 identifier,
184 markers)); 184 markers));
185 } 185 }
186 #endif 186 #endif
187 187
188 SpellcheckService* SpellCheckMessageFilter::GetSpellcheckService() const { 188 SpellcheckService* SpellCheckMessageFilter::GetSpellcheckService() const {
189 return SpellcheckServiceFactory::GetForRenderProcessId(render_process_id_); 189 return SpellcheckServiceFactory::GetForRenderProcessId(render_process_id_);
190 } 190 }
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_factory.cc ('k') | chrome/browser/spellchecker/spellcheck_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698