From 405a4d13d1222290268372ad308201395d377ff0 Mon Sep 17 00:00:00 2001 From: "rlp@chromium.org" Date: Wed, 5 Feb 2014 17:03:42 +0000 Subject: [PATCH] [Hotword] Some small fixes to the hotword_private extension api. BUG=325439, 289023 Review URL: https://codereview.chromium.org/154683002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249026 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/api/hotword_private/hotword_private_api.cc | 3 +-- chrome/common/extensions/api/hotword_private.idl | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc b/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc index be55d707dc2c..3b41fdd1dbc9 100644 --- a/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc +++ b/chrome/browser/extensions/api/hotword_private/hotword_private_api.cc @@ -6,7 +6,6 @@ #include "base/lazy_instance.h" #include "base/prefs/pref_service.h" -#include "chrome/browser/extensions/extension_service.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/search/hotword_service.h" #include "chrome/browser/search/hotword_service_factory.h" @@ -87,7 +86,7 @@ bool HotwordPrivateGetStatusFunction::RunImpl() { PrefService* prefs = GetProfile()->GetPrefs(); result.enabled = - prefs->GetBoolean(prefs::kHotwordSearchEnabled) && result.available; + prefs->GetBoolean(prefs::kHotwordSearchEnabled); SetResult(result.ToValue().release()); return true; diff --git a/chrome/common/extensions/api/hotword_private.idl b/chrome/common/extensions/api/hotword_private.idl index 5d95cd60c932..76a0b7c639d1 100644 --- a/chrome/common/extensions/api/hotword_private.idl +++ b/chrome/common/extensions/api/hotword_private.idl @@ -32,7 +32,6 @@ // Retrieves the current state of hotword search. // The result is put into a StatusDetails object. static void getStatus(StatusDetailsCallback callback); - }; interface Events { -- 2.11.4.GIT