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

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

Issue 2129413002: Use output_all_resource_defines=false in some chrome/ grd files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, address comment, more whitelist.cc cleanup Created 4 years, 5 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 (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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 } 340 }
341 341
342 void ComponentLoader::AddHangoutServicesExtension() { 342 void ComponentLoader::AddHangoutServicesExtension() {
343 #if defined(GOOGLE_CHROME_BUILD) || defined(ENABLE_HANGOUT_SERVICES_EXTENSION) 343 #if defined(GOOGLE_CHROME_BUILD) || defined(ENABLE_HANGOUT_SERVICES_EXTENSION)
344 Add(IDR_HANGOUT_SERVICES_MANIFEST, 344 Add(IDR_HANGOUT_SERVICES_MANIFEST,
345 base::FilePath(FILE_PATH_LITERAL("hangout_services"))); 345 base::FilePath(FILE_PATH_LITERAL("hangout_services")));
346 #endif 346 #endif
347 } 347 }
348 348
349 void ComponentLoader::AddHotwordAudioVerificationApp() { 349 void ComponentLoader::AddHotwordAudioVerificationApp() {
350 #if defined(ENABLE_HOTWORDING)
350 if (HotwordServiceFactory::IsAlwaysOnAvailable()) { 351 if (HotwordServiceFactory::IsAlwaysOnAvailable()) {
351 Add(IDR_HOTWORD_AUDIO_VERIFICATION_MANIFEST, 352 Add(IDR_HOTWORD_AUDIO_VERIFICATION_MANIFEST,
352 base::FilePath(FILE_PATH_LITERAL("hotword_audio_verification"))); 353 base::FilePath(FILE_PATH_LITERAL("hotword_audio_verification")));
353 } 354 }
355 #endif
354 } 356 }
355 357
356 void ComponentLoader::AddHotwordHelperExtension() { 358 void ComponentLoader::AddHotwordHelperExtension() {
359 #if defined(ENABLE_HOTWORDING)
357 if (HotwordServiceFactory::IsHotwordAllowed(profile_)) { 360 if (HotwordServiceFactory::IsHotwordAllowed(profile_)) {
358 Add(IDR_HOTWORD_MANIFEST, 361 Add(IDR_HOTWORD_MANIFEST,
359 base::FilePath(FILE_PATH_LITERAL("hotword"))); 362 base::FilePath(FILE_PATH_LITERAL("hotword")));
360 } 363 }
364 #endif
361 } 365 }
362 366
363 void ComponentLoader::AddImageLoaderExtension() { 367 void ComponentLoader::AddImageLoaderExtension() {
364 #if defined(IMAGE_LOADER_EXTENSION) 368 #if defined(IMAGE_LOADER_EXTENSION)
365 Add(IDR_IMAGE_LOADER_MANIFEST, 369 Add(IDR_IMAGE_LOADER_MANIFEST,
366 base::FilePath(FILE_PATH_LITERAL("image_loader"))); 370 base::FilePath(FILE_PATH_LITERAL("image_loader")));
367 #endif // defined(IMAGE_LOADER_EXTENSION) 371 #endif // defined(IMAGE_LOADER_EXTENSION)
368 } 372 }
369 373
370 void ComponentLoader::AddNetworkSpeechSynthesisExtension() { 374 void ComponentLoader::AddNetworkSpeechSynthesisExtension() {
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 manifest.release(), 718 manifest.release(),
715 root_directory, 719 root_directory,
716 false); 720 false);
717 CHECK_EQ(extension_id, actual_extension_id); 721 CHECK_EQ(extension_id, actual_extension_id);
718 if (!done_cb.is_null()) 722 if (!done_cb.is_null())
719 done_cb.Run(); 723 done_cb.Run();
720 } 724 }
721 #endif 725 #endif
722 726
723 } // namespace extensions 727 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/component_extensions_whitelist/whitelist.cc ('k') | chrome/browser/shell_integration_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698