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

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

Issue 1419103010: Aura on Android: Compile extensions gn target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compile_extensions_browser
Patch Set: Addressed feedback from patchset 9. Created 5 years, 1 month 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 | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser_navigator_params.h » ('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"
11 #include "base/json/json_string_value_serializer.h" 11 #include "base/json/json_string_value_serializer.h"
12 #include "base/metrics/field_trial.h" 12 #include "base/metrics/field_trial.h"
13 #include "base/metrics/histogram_macros.h" 13 #include "base/metrics/histogram_macros.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/profiler/scoped_profile.h" 15 #include "base/profiler/scoped_profile.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "base/trace_event/trace_event.h" 17 #include "base/trace_event/trace_event.h"
18 #include "chrome/browser/extensions/component_extensions_whitelist/whitelist.h" 18 #include "chrome/browser/extensions/component_extensions_whitelist/whitelist.h"
19 #include "chrome/browser/extensions/data_deleter.h" 19 #include "chrome/browser/extensions/data_deleter.h"
20 #include "chrome/browser/extensions/extension_service.h" 20 #include "chrome/browser/extensions/extension_service.h"
21 #include "chrome/browser/pdf/pdf_extension_util.h" 21 #include "chrome/browser/pdf/pdf_extension_util.h"
22 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
23 #include "chrome/browser/search/hotword_service.h" 23 #include "chrome/browser/search/hotword_service.h"
24 #include "chrome/browser/search/hotword_service_factory.h" 24 #include "chrome/browser/search/hotword_service_factory.h"
25 #include "chrome/browser/signin/signin_manager_factory.h" 25 #include "chrome/browser/signin/signin_manager_factory.h"
26 #include "chrome/common/channel_info.h" 26 #include "chrome/common/channel_info.h"
27 #include "chrome/common/chrome_paths.h" 27 #include "chrome/common/chrome_paths.h"
28 #include "chrome/common/chrome_switches.h" 28 #include "chrome/common/chrome_switches.h"
29 #include "chrome/common/extensions/extension_constants.h" 29 #include "chrome/common/extensions/extension_constants.h"
30 #include "chrome/grit/chromium_strings.h"
30 #include "chrome/grit/generated_resources.h" 31 #include "chrome/grit/generated_resources.h"
31 #include "components/crx_file/id_util.h" 32 #include "components/crx_file/id_util.h"
32 #include "components/signin/core/browser/signin_manager.h" 33 #include "components/signin/core/browser/signin_manager.h"
33 #include "components/signin/core/browser/signin_manager_base.h" 34 #include "components/signin/core/browser/signin_manager_base.h"
34 #include "components/version_info/version_info.h" 35 #include "components/version_info/version_info.h"
35 #include "content/public/browser/browser_thread.h" 36 #include "content/public/browser/browser_thread.h"
36 #include "content/public/browser/plugin_service.h" 37 #include "content/public/browser/plugin_service.h"
37 #include "content/public/common/content_switches.h" 38 #include "content/public/common/content_switches.h"
38 #include "extensions/common/constants.h" 39 #include "extensions/common/constants.h"
39 #include "extensions/common/extension.h" 40 #include "extensions/common/extension.h"
(...skipping 19 matching lines...) Expand all
59 60
60 #if defined(OS_CHROMEOS) 61 #if defined(OS_CHROMEOS)
61 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" 62 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
62 #include "chromeos/chromeos_switches.h" 63 #include "chromeos/chromeos_switches.h"
63 #include "content/public/browser/site_instance.h" 64 #include "content/public/browser/site_instance.h"
64 #include "content/public/browser/storage_partition.h" 65 #include "content/public/browser/storage_partition.h"
65 #include "extensions/browser/extensions_browser_client.h" 66 #include "extensions/browser/extensions_browser_client.h"
66 #include "storage/browser/fileapi/file_system_context.h" 67 #include "storage/browser/fileapi/file_system_context.h"
67 #endif 68 #endif
68 69
69 #if defined(ENABLE_APP_LIST)
70 #include "chrome/grit/chromium_strings.h"
71 #endif
72
73 #if defined(ENABLE_APP_LIST) && defined(OS_CHROMEOS) 70 #if defined(ENABLE_APP_LIST) && defined(OS_CHROMEOS)
74 #include "chrome/browser/ui/app_list/google_now_extension.h" 71 #include "chrome/browser/ui/app_list/google_now_extension.h"
75 #endif 72 #endif
76 73
77 using content::BrowserThread; 74 using content::BrowserThread;
78 75
79 namespace extensions { 76 namespace extensions {
80 77
81 namespace { 78 namespace {
82 79
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 manifest.release(), 765 manifest.release(),
769 root_directory, 766 root_directory,
770 false); 767 false);
771 CHECK_EQ(extension_id, actual_extension_id); 768 CHECK_EQ(extension_id, actual_extension_id);
772 if (!done_cb.is_null()) 769 if (!done_cb.is_null())
773 done_cb.Run(); 770 done_cb.Run();
774 } 771 }
775 #endif 772 #endif
776 773
777 } // namespace extensions 774 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser_navigator_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698