| Index: apps/apps_client.h
|
| diff --git a/apps/apps_client.h b/apps/apps_client.h
|
| index c3a58ca10c4ea993b881952ae78a42d0b162fb60..f67aad679c7f3b1af3035e7e4d1ccb0999735722 100644
|
| --- a/apps/apps_client.h
|
| +++ b/apps/apps_client.h
|
| @@ -11,6 +11,10 @@ namespace content {
|
| class BrowserContext;
|
| }
|
|
|
| +namespace extensions {
|
| +class Extension;
|
| +}
|
| +
|
| namespace apps {
|
|
|
| // Sets up global state for the apps system. Should be Set() once in each
|
| @@ -20,6 +24,11 @@ class AppsClient {
|
| // Get all loaded browser contexts.
|
| virtual std::vector<content::BrowserContext*> GetLoadedBrowserContexts() = 0;
|
|
|
| + // Do any pre app launch checks. Returns true if the app launch should proceed
|
| + // or false if the launch should be prevented.
|
| + virtual bool CheckAppLaunch(content::BrowserContext* context,
|
| + const extensions::Extension* extension) = 0;
|
| +
|
| // Return the apps client.
|
| static AppsClient* Get();
|
|
|
|
|