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

Side by Side Diff: chrome/browser/apps/app_load_service.cc

Issue 2789253003: Add chrome/browser/apps/BUILD.gn and move Chrome-specific code there (Closed)
Patch Set: rebase Created 3 years, 8 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 | « chrome/browser/apps/app_load_service.h ('k') | chrome/browser/apps/app_load_service_factory.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "apps/app_load_service.h" 5 #include "chrome/browser/apps/app_load_service.h"
6 6
7 #include "apps/app_load_service_factory.h"
8 #include "apps/app_restore_service.h" 7 #include "apps/app_restore_service.h"
9 #include "apps/launcher.h" 8 #include "apps/launcher.h"
9 #include "chrome/browser/apps/app_load_service_factory.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
11 #include "chrome/browser/extensions/unpacked_installer.h" 11 #include "chrome/browser/extensions/unpacked_installer.h"
12 #include "content/public/browser/browser_context.h" 12 #include "content/public/browser/browser_context.h"
13 #include "content/public/browser/notification_details.h" 13 #include "content/public/browser/notification_details.h"
14 #include "content/public/browser/notification_service.h" 14 #include "content/public/browser/notification_service.h"
15 #include "content/public/browser/notification_types.h" 15 #include "content/public/browser/notification_types.h"
16 #include "extensions/browser/app_window/app_window_registry.h" 16 #include "extensions/browser/app_window/app_window_registry.h"
17 #include "extensions/browser/extension_host.h" 17 #include "extensions/browser/extension_host.h"
18 #include "extensions/browser/extension_prefs.h" 18 #include "extensions/browser/extension_prefs.h"
19 #include "extensions/browser/extension_registry.h" 19 #include "extensions/browser/extension_registry.h"
20 #include "extensions/browser/extension_system.h" 20 #include "extensions/browser/extension_system.h"
21 #include "extensions/browser/notification_types.h" 21 #include "extensions/browser/notification_types.h"
22 #include "extensions/common/extension.h" 22 #include "extensions/common/extension.h"
23 23
24 using extensions::Extension; 24 using extensions::Extension;
25 using extensions::ExtensionPrefs; 25 using extensions::ExtensionPrefs;
26 using extensions::ExtensionSystem; 26 using extensions::ExtensionSystem;
27 27
28 namespace apps { 28 namespace apps {
29 29
30 AppLoadService::PostReloadAction::PostReloadAction() 30 AppLoadService::PostReloadAction::PostReloadAction()
31 : action_type(LAUNCH_FOR_RELOAD), 31 : action_type(LAUNCH_FOR_RELOAD),
32 command_line(base::CommandLine::NO_PROGRAM) { 32 command_line(base::CommandLine::NO_PROGRAM) {}
33 }
34 33
35 AppLoadService::AppLoadService(content::BrowserContext* context) 34 AppLoadService::AppLoadService(content::BrowserContext* context)
36 : context_(context) { 35 : context_(context) {
37 registrar_.Add(this, 36 registrar_.Add(this,
38 extensions::NOTIFICATION_EXTENSION_HOST_DID_STOP_FIRST_LOAD, 37 extensions::NOTIFICATION_EXTENSION_HOST_DID_STOP_FIRST_LOAD,
39 content::NotificationService::AllSources()); 38 content::NotificationService::AllSources());
40 extensions::ExtensionRegistry::Get(context_)->AddObserver(this); 39 extensions::ExtensionRegistry::Get(context_)->AddObserver(this);
41 } 40 }
42 41
43 AppLoadService::~AppLoadService() = default; 42 AppLoadService::~AppLoadService() = default;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 Extension::DISABLE_RELOAD) != 0; 152 Extension::DISABLE_RELOAD) != 0;
154 } 153 }
155 return false; 154 return false;
156 } 155 }
157 156
158 bool AppLoadService::HasPostReloadAction(const std::string& extension_id) { 157 bool AppLoadService::HasPostReloadAction(const std::string& extension_id) {
159 return post_reload_actions_.find(extension_id) != post_reload_actions_.end(); 158 return post_reload_actions_.find(extension_id) != post_reload_actions_.end();
160 } 159 }
161 160
162 } // namespace apps 161 } // namespace apps
OLDNEW
« no previous file with comments | « chrome/browser/apps/app_load_service.h ('k') | chrome/browser/apps/app_load_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698