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

Side by Side Diff: chrome/browser/extensions/component_loader.cc

Issue 1008273003: Rename HotwordServiceFactory::IsHotwordHardwareAvailable() to IsAlwaysOnAvailable(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | chrome/browser/search/hotword_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/extensions/component_loader.h" 5 #include "chrome/browser/extensions/component_loader.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 328
329 void ComponentLoader::AddHangoutServicesExtension() { 329 void ComponentLoader::AddHangoutServicesExtension() {
330 #if defined(GOOGLE_CHROME_BUILD) || defined(ENABLE_HANGOUT_SERVICES_EXTENSION) 330 #if defined(GOOGLE_CHROME_BUILD) || defined(ENABLE_HANGOUT_SERVICES_EXTENSION)
331 Add(IDR_HANGOUT_SERVICES_MANIFEST, 331 Add(IDR_HANGOUT_SERVICES_MANIFEST,
332 base::FilePath(FILE_PATH_LITERAL("hangout_services"))); 332 base::FilePath(FILE_PATH_LITERAL("hangout_services")));
333 #endif 333 #endif
334 } 334 }
335 335
336 void ComponentLoader::AddHotwordAudioVerificationApp() { 336 void ComponentLoader::AddHotwordAudioVerificationApp() {
337 if (HotwordService::IsExperimentalHotwordingEnabled() && 337 if (HotwordService::IsExperimentalHotwordingEnabled() &&
338 HotwordServiceFactory::IsHotwordHardwareAvailable()) { 338 HotwordServiceFactory::IsAlwaysOnAvailable()) {
339 Add(IDR_HOTWORD_AUDIO_VERIFICATION_MANIFEST, 339 Add(IDR_HOTWORD_AUDIO_VERIFICATION_MANIFEST,
340 base::FilePath(FILE_PATH_LITERAL("hotword_audio_verification"))); 340 base::FilePath(FILE_PATH_LITERAL("hotword_audio_verification")));
341 } 341 }
342 } 342 }
343 343
344 void ComponentLoader::AddHotwordHelperExtension() { 344 void ComponentLoader::AddHotwordHelperExtension() {
345 if (HotwordServiceFactory::IsHotwordAllowed(browser_context_)) { 345 if (HotwordServiceFactory::IsHotwordAllowed(browser_context_)) {
346 if (HotwordService::IsExperimentalHotwordingEnabled()) { 346 if (HotwordService::IsExperimentalHotwordingEnabled()) {
347 Add(IDR_HOTWORD_MANIFEST, 347 Add(IDR_HOTWORD_MANIFEST,
348 base::FilePath(FILE_PATH_LITERAL("hotword"))); 348 base::FilePath(FILE_PATH_LITERAL("hotword")));
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 off_the_record_context, Extension::GetBaseURLFromExtensionId(id)); 672 off_the_record_context, Extension::GetBaseURLFromExtensionId(id));
673 storage::FileSystemContext* file_system_context = 673 storage::FileSystemContext* file_system_context =
674 content::BrowserContext::GetStoragePartitionForSite( 674 content::BrowserContext::GetStoragePartitionForSite(
675 off_the_record_context, site)->GetFileSystemContext(); 675 off_the_record_context, site)->GetFileSystemContext();
676 file_system_context->EnableTemporaryFileSystemInIncognito(); 676 file_system_context->EnableTemporaryFileSystemInIncognito();
677 } 677 }
678 #endif 678 #endif
679 } 679 }
680 680
681 } // namespace extensions 681 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/search/hotword_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698