OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/extensions/api/hotword_private/hotword_private_api.h" | 5 #include "chrome/browser/extensions/api/hotword_private/hotword_private_api.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/search/hotword_audio_history_handler.h" | 14 #include "chrome/browser/search/hotword_audio_history_handler.h" |
15 #include "chrome/browser/search/hotword_client.h" | 15 #include "chrome/browser/search/hotword_client.h" |
16 #include "chrome/browser/search/hotword_service.h" | 16 #include "chrome/browser/search/hotword_service.h" |
17 #include "chrome/browser/search/hotword_service_factory.h" | 17 #include "chrome/browser/search/hotword_service_factory.h" |
18 #include "chrome/browser/ui/app_list/app_list_service.h" | 18 #include "chrome/browser/ui/app_list/app_list_service.h" |
19 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
| 20 #include "chrome/browser/ui/host_desktop.h" |
20 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
21 #include "chrome/grit/chromium_strings.h" | 22 #include "chrome/grit/chromium_strings.h" |
22 #include "chrome/grit/generated_resources.h" | 23 #include "chrome/grit/generated_resources.h" |
23 #include "content/public/browser/speech_recognition_session_preamble.h" | 24 #include "content/public/browser/speech_recognition_session_preamble.h" |
24 #include "extensions/browser/event_router.h" | 25 #include "extensions/browser/event_router.h" |
25 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
26 #include "ui/base/webui/web_ui_util.h" | 27 #include "ui/base/webui/web_ui_util.h" |
27 | 28 |
28 #if defined(OS_CHROMEOS) | 29 #if defined(OS_CHROMEOS) |
29 #include "ash/system/chromeos/devicetype_utils.h" | 30 #include "ash/system/chromeos/devicetype_utils.h" |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 HotwordService* hotword_service = | 517 HotwordService* hotword_service = |
517 HotwordServiceFactory::GetForProfile(GetProfile()); | 518 HotwordServiceFactory::GetForProfile(GetProfile()); |
518 if (!hotword_service) | 519 if (!hotword_service) |
519 return false; | 520 return false; |
520 | 521 |
521 hotword_service->SpeakerModelExistsComplete(params->exists); | 522 hotword_service->SpeakerModelExistsComplete(params->exists); |
522 return true; | 523 return true; |
523 } | 524 } |
524 | 525 |
525 } // namespace extensions | 526 } // namespace extensions |
OLD | NEW |