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/platform_file.h" | |
8 #include "base/prefs/pref_member.h" | 7 #include "base/prefs/pref_member.h" |
9 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
10 #include "base/strings/string_split.h" | 9 #include "base/strings/string_split.h" |
11 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
12 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 11 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
13 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" | 12 #include "chrome/browser/spellchecker/spellcheck_host_metrics.h" |
14 #include "chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h" | 13 #include "chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h" |
15 #include "chrome/browser/spellchecker/spellcheck_platform_mac.h" | 14 #include "chrome/browser/spellchecker/spellcheck_platform_mac.h" |
16 #include "chrome/browser/spellchecker/spelling_service_client.h" | 15 #include "chrome/browser/spellchecker/spelling_service_client.h" |
17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 } | 308 } |
310 | 309 |
311 void SpellcheckService::UpdateFeedbackSenderState() { | 310 void SpellcheckService::UpdateFeedbackSenderState() { |
312 if (SpellingServiceClient::IsAvailable( | 311 if (SpellingServiceClient::IsAvailable( |
313 context_, SpellingServiceClient::SPELLCHECK)) { | 312 context_, SpellingServiceClient::SPELLCHECK)) { |
314 feedback_sender_->StartFeedbackCollection(); | 313 feedback_sender_->StartFeedbackCollection(); |
315 } else { | 314 } else { |
316 feedback_sender_->StopFeedbackCollection(); | 315 feedback_sender_->StopFeedbackCollection(); |
317 } | 316 } |
318 } | 317 } |
OLD | NEW |