OLD | NEW |
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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 #if defined(OS_CHROMEOS) | 329 #if defined(OS_CHROMEOS) |
330 AddWithNameAndDescription( | 330 AddWithNameAndDescription( |
331 IDR_CHROME_APPS_WEBSTORE_WIDGET_MANIFEST, | 331 IDR_CHROME_APPS_WEBSTORE_WIDGET_MANIFEST, |
332 base::FilePath(FILE_PATH_LITERAL("webstore_widget")), | 332 base::FilePath(FILE_PATH_LITERAL("webstore_widget")), |
333 l10n_util::GetStringUTF8(IDS_WEBSTORE_WIDGET_APP_NAME), | 333 l10n_util::GetStringUTF8(IDS_WEBSTORE_WIDGET_APP_NAME), |
334 l10n_util::GetStringUTF8(IDS_WEBSTORE_WIDGET_APP_DESC)); | 334 l10n_util::GetStringUTF8(IDS_WEBSTORE_WIDGET_APP_DESC)); |
335 #endif | 335 #endif |
336 } | 336 } |
337 | 337 |
338 void ComponentLoader::AddHangoutServicesExtension() { | 338 void ComponentLoader::AddHangoutServicesExtension() { |
339 #if defined(GOOGLE_CHROME_BUILD) || defined(ENABLE_HANGOUT_SERVICES_EXTENSION) | 339 #if defined(GOOGLE_CHROME_BUILD) || BUILDFLAG(ENABLE_HANGOUT_SERVICES_EXTENSION) |
340 Add(IDR_HANGOUT_SERVICES_MANIFEST, | 340 Add(IDR_HANGOUT_SERVICES_MANIFEST, |
341 base::FilePath(FILE_PATH_LITERAL("hangout_services"))); | 341 base::FilePath(FILE_PATH_LITERAL("hangout_services"))); |
342 #endif | 342 #endif |
343 } | 343 } |
344 | 344 |
345 void ComponentLoader::AddHotwordAudioVerificationApp() { | 345 void ComponentLoader::AddHotwordAudioVerificationApp() { |
346 #if defined(ENABLE_HOTWORDING) | 346 #if defined(ENABLE_HOTWORDING) |
347 if (HotwordServiceFactory::IsAlwaysOnAvailable()) { | 347 if (HotwordServiceFactory::IsAlwaysOnAvailable()) { |
348 Add(IDR_HOTWORD_AUDIO_VERIFICATION_MANIFEST, | 348 Add(IDR_HOTWORD_AUDIO_VERIFICATION_MANIFEST, |
349 base::FilePath(FILE_PATH_LITERAL("hotword_audio_verification"))); | 349 base::FilePath(FILE_PATH_LITERAL("hotword_audio_verification"))); |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 manifest.release(), | 690 manifest.release(), |
691 root_directory, | 691 root_directory, |
692 false); | 692 false); |
693 CHECK_EQ(extension_id, actual_extension_id); | 693 CHECK_EQ(extension_id, actual_extension_id); |
694 if (!done_cb.is_null()) | 694 if (!done_cb.is_null()) |
695 done_cb.Run(); | 695 done_cb.Run(); |
696 } | 696 } |
697 #endif | 697 #endif |
698 | 698 |
699 } // namespace extensions | 699 } // namespace extensions |
OLD | NEW |