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

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

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 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 | Annotate | Revision Log
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 "chrome/browser/apps/ephemeral_app_launcher.h" 5 #include "chrome/browser/apps/ephemeral_app_launcher.h"
6 6
7 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
8 #include "chrome/browser/extensions/extension_install_prompt.h" 8 #include "chrome/browser/extensions/extension_install_prompt.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_system.h"
11 #include "chrome/browser/extensions/extension_util.h" 10 #include "chrome/browser/extensions/extension_util.h"
12 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/ui/extensions/application_launch.h" 12 #include "chrome/browser/ui/extensions/application_launch.h"
14 #include "chrome/browser/ui/extensions/extension_enable_flow.h" 13 #include "chrome/browser/ui/extensions/extension_enable_flow.h"
15 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
16 #include "content/public/browser/notification_details.h" 15 #include "content/public/browser/notification_details.h"
17 #include "content/public/browser/notification_source.h" 16 #include "content/public/browser/notification_source.h"
18 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
19 #include "content/public/browser/web_contents_view.h" 18 #include "content/public/browser/web_contents_view.h"
19 #include "extensions/browser/extension_system.h"
20 #include "extensions/common/permissions/permissions_data.h" 20 #include "extensions/common/permissions/permissions_data.h"
21 21
22 using content::WebContents; 22 using content::WebContents;
23 using extensions::Extension; 23 using extensions::Extension;
24 using extensions::ExtensionSystem; 24 using extensions::ExtensionSystem;
25 using extensions::WebstoreInstaller; 25 using extensions::WebstoreInstaller;
26 26
27 namespace { 27 namespace {
28 28
29 const char kInvalidManifestError[] = "Invalid manifest"; 29 const char kInvalidManifestError[] = "Invalid manifest";
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 LaunchApp(extension); 296 LaunchApp(extension);
297 WebstoreStandaloneInstaller::CompleteInstall(std::string()); 297 WebstoreStandaloneInstaller::CompleteInstall(std::string());
298 } else { 298 } else {
299 WebstoreStandaloneInstaller::CompleteInstall(kLaunchAbortedError); 299 WebstoreStandaloneInstaller::CompleteInstall(kLaunchAbortedError);
300 } 300 }
301 } 301 }
302 302
303 void EphemeralAppLauncher::ExtensionEnableFlowAborted(bool user_initiated) { 303 void EphemeralAppLauncher::ExtensionEnableFlowAborted(bool user_initiated) {
304 WebstoreStandaloneInstaller::CompleteInstall(kLaunchAbortedError); 304 WebstoreStandaloneInstaller::CompleteInstall(kLaunchAbortedError);
305 } 305 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/ephemeral_app_browsertest.cc ('k') | chrome/browser/apps/ephemeral_app_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698