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

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

Issue 2072013002: mash: Move tray settings and deps to common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo 'git cl format' and nullptr changes. Created 4 years, 6 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/system/chromeos/devicetype_utils.h" 33 #include "ash/common/system/chromeos/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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 HotwordService* hotword_service = 521 HotwordService* hotword_service =
522 HotwordServiceFactory::GetForProfile(GetProfile()); 522 HotwordServiceFactory::GetForProfile(GetProfile());
523 if (!hotword_service) 523 if (!hotword_service)
524 return false; 524 return false;
525 525
526 hotword_service->SpeakerModelExistsComplete(params->exists); 526 hotword_service->SpeakerModelExistsComplete(params->exists);
527 return true; 527 return true;
528 } 528 }
529 529
530 } // namespace extensions 530 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698