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/browser/spellchecker/spellcheck_service.h" | 5 #include "chrome/browser/spellchecker/spellcheck_service.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/prefs/pref_member.h" | |
9 #include "base/prefs/pref_service.h" | |
10 #include "base/strings/string_split.h" | 8 #include "base/strings/string_split.h" |
11 #include "base/supports_user_data.h" | 9 #include "base/supports_user_data.h" |
12 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
13 #include "build/build_config.h" | 11 #include "build/build_config.h" |
14 #include "chrome/browser/spellchecker/feedback_sender.h" | 12 #include "chrome/browser/spellchecker/feedback_sender.h" |
15 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 13 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
16 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" | 14 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" |
17 #include "chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h" | 15 #include "chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h" |
18 #include "chrome/browser/spellchecker/spellcheck_platform.h" | 16 #include "chrome/browser/spellchecker/spellcheck_platform.h" |
19 #include "chrome/browser/spellchecker/spelling_service_client.h" | 17 #include "chrome/browser/spellchecker/spelling_service_client.h" |
20 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
21 #include "chrome/common/spellcheck_bdict_language.h" | 19 #include "chrome/common/spellcheck_bdict_language.h" |
22 #include "chrome/common/spellcheck_common.h" | 20 #include "chrome/common/spellcheck_common.h" |
23 #include "chrome/common/spellcheck_messages.h" | 21 #include "chrome/common/spellcheck_messages.h" |
| 22 #include "components/prefs/pref_member.h" |
| 23 #include "components/prefs/pref_service.h" |
24 #include "components/user_prefs/user_prefs.h" | 24 #include "components/user_prefs/user_prefs.h" |
25 #include "content/public/browser/browser_context.h" | 25 #include "content/public/browser/browser_context.h" |
26 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
27 #include "content/public/browser/notification_service.h" | 27 #include "content/public/browser/notification_service.h" |
28 #include "content/public/browser/notification_types.h" | 28 #include "content/public/browser/notification_types.h" |
29 #include "content/public/browser/render_process_host.h" | 29 #include "content/public/browser/render_process_host.h" |
30 #include "ipc/ipc_platform_file.h" | 30 #include "ipc/ipc_platform_file.h" |
31 | 31 |
32 using content::BrowserThread; | 32 using content::BrowserThread; |
33 | 33 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 } | 352 } |
353 | 353 |
354 void SpellcheckService::UpdateFeedbackSenderState() { | 354 void SpellcheckService::UpdateFeedbackSenderState() { |
355 if (SpellingServiceClient::IsAvailable( | 355 if (SpellingServiceClient::IsAvailable( |
356 context_, SpellingServiceClient::SPELLCHECK)) { | 356 context_, SpellingServiceClient::SPELLCHECK)) { |
357 feedback_sender_->StartFeedbackCollection(); | 357 feedback_sender_->StartFeedbackCollection(); |
358 } else { | 358 } else { |
359 feedback_sender_->StopFeedbackCollection(); | 359 feedback_sender_->StopFeedbackCollection(); |
360 } | 360 } |
361 } | 361 } |
OLD | NEW |