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

Side by Side Diff: extensions/shell/browser/shell_extension_system.cc

Issue 2276293002: Revert of Add ARC++ specific fields to launch data for specific apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « extensions/common/api/app_runtime.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/shell/browser/shell_extension_system.h" 5 #include "extensions/shell/browser/shell_extension_system.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 90
91 void ShellExtensionSystem::LaunchApp(const ExtensionId& extension_id) { 91 void ShellExtensionSystem::LaunchApp(const ExtensionId& extension_id) {
92 // Send the onLaunched event. 92 // Send the onLaunched event.
93 DCHECK(ExtensionRegistry::Get(browser_context_) 93 DCHECK(ExtensionRegistry::Get(browser_context_)
94 ->enabled_extensions() 94 ->enabled_extensions()
95 .Contains(extension_id)); 95 .Contains(extension_id));
96 const Extension* extension = ExtensionRegistry::Get(browser_context_) 96 const Extension* extension = ExtensionRegistry::Get(browser_context_)
97 ->enabled_extensions() 97 ->enabled_extensions()
98 .GetByID(extension_id); 98 .GetByID(extension_id);
99 AppRuntimeEventRouter::DispatchOnLaunchedEvent(browser_context_, extension, 99 AppRuntimeEventRouter::DispatchOnLaunchedEvent(
100 SOURCE_UNTRACKED, nullptr); 100 browser_context_, extension, SOURCE_UNTRACKED,
101 std::unique_ptr<api::app_runtime::ActionData>());
101 } 102 }
102 103
103 void ShellExtensionSystem::Shutdown() { 104 void ShellExtensionSystem::Shutdown() {
104 } 105 }
105 106
106 void ShellExtensionSystem::InitForRegularProfile(bool extensions_enabled) { 107 void ShellExtensionSystem::InitForRegularProfile(bool extensions_enabled) {
107 service_worker_manager_.reset(new ServiceWorkerManager(browser_context_)); 108 service_worker_manager_.reset(new ServiceWorkerManager(browser_context_));
108 runtime_data_.reset( 109 runtime_data_.reset(
109 new RuntimeData(ExtensionRegistry::Get(browser_context_))); 110 new RuntimeData(ExtensionRegistry::Get(browser_context_)));
110 quota_service_.reset(new QuotaService); 111 quota_service_.reset(new QuotaService);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 193 }
193 194
194 void ShellExtensionSystem::OnExtensionRegisteredWithRequestContexts( 195 void ShellExtensionSystem::OnExtensionRegisteredWithRequestContexts(
195 scoped_refptr<Extension> extension) { 196 scoped_refptr<Extension> extension) {
196 ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context_); 197 ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context_);
197 registry->AddReady(extension); 198 registry->AddReady(extension);
198 registry->TriggerOnReady(extension.get()); 199 registry->TriggerOnReady(extension.get());
199 } 200 }
200 201
201 } // namespace extensions 202 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/api/app_runtime.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698