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

Side by Side Diff: chrome/browser/extensions/api/hotword_private/hotword_private_api.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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 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 <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 12 matching lines...) Expand all
23 #include "chrome/common/pref_names.h" 23 #include "chrome/common/pref_names.h"
24 #include "chrome/grit/chromium_strings.h" 24 #include "chrome/grit/chromium_strings.h"
25 #include "chrome/grit/generated_resources.h" 25 #include "chrome/grit/generated_resources.h"
26 #include "components/prefs/pref_service.h" 26 #include "components/prefs/pref_service.h"
27 #include "content/public/browser/speech_recognition_session_preamble.h" 27 #include "content/public/browser/speech_recognition_session_preamble.h"
28 #include "extensions/browser/event_router.h" 28 #include "extensions/browser/event_router.h"
29 #include "ui/base/l10n/l10n_util.h" 29 #include "ui/base/l10n/l10n_util.h"
30 #include "ui/base/webui/web_ui_util.h" 30 #include "ui/base/webui/web_ui_util.h"
31 31
32 #if defined(OS_CHROMEOS) 32 #if defined(OS_CHROMEOS)
33 #include "ash/common/system/chromeos/devicetype_utils.h" 33 #include "ash/system/devicetype_utils.h"
34 #endif 34 #endif
35 35
36 namespace extensions { 36 namespace extensions {
37 37
38 namespace hotword_private_constants { 38 namespace hotword_private_constants {
39 const char kHotwordServiceUnavailable[] = "Hotword Service is unavailable."; 39 const char kHotwordServiceUnavailable[] = "Hotword Service is unavailable.";
40 const char kHotwordEventServiceUnavailable[] = 40 const char kHotwordEventServiceUnavailable[] =
41 "Hotword Private Event Service is unavailable."; 41 "Hotword Private Event Service is unavailable.";
42 } // hotword_private_constants 42 } // hotword_private_constants
43 43
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 HotwordService* hotword_service = HotwordServiceFactory::GetForProfile( 531 HotwordService* hotword_service = HotwordServiceFactory::GetForProfile(
532 Profile::FromBrowserContext(browser_context())); 532 Profile::FromBrowserContext(browser_context()));
533 if (!hotword_service) 533 if (!hotword_service)
534 return RespondNow(Error(kUnknownErrorDoNotUse)); 534 return RespondNow(Error(kUnknownErrorDoNotUse));
535 535
536 hotword_service->SpeakerModelExistsComplete(params->exists); 536 hotword_service->SpeakerModelExistsComplete(params->exists);
537 return RespondNow(NoArguments()); 537 return RespondNow(NoArguments());
538 } 538 }
539 539
540 } // namespace extensions 540 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698