OLD | NEW |
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/ui/extensions/application_launch.h" | 5 #include "chrome/browser/ui/extensions/application_launch.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "apps/launcher.h" | 9 #include "apps/launcher.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "content/public/browser/render_view_host.h" | 34 #include "content/public/browser/render_view_host.h" |
35 #include "content/public/browser/web_contents.h" | 35 #include "content/public/browser/web_contents.h" |
36 #include "content/public/common/renderer_preferences.h" | 36 #include "content/public/common/renderer_preferences.h" |
37 #include "extensions/browser/extension_prefs.h" | 37 #include "extensions/browser/extension_prefs.h" |
38 #include "extensions/browser/extension_registry.h" | 38 #include "extensions/browser/extension_registry.h" |
39 #include "extensions/browser/extension_system.h" | 39 #include "extensions/browser/extension_system.h" |
40 #include "extensions/common/constants.h" | 40 #include "extensions/common/constants.h" |
41 #include "extensions/common/extension.h" | 41 #include "extensions/common/extension.h" |
42 #include "extensions/common/features/feature.h" | 42 #include "extensions/common/features/feature.h" |
43 #include "extensions/common/features/feature_provider.h" | 43 #include "extensions/common/features/feature_provider.h" |
44 #include "grit/generated_resources.h" | |
45 #include "ui/base/window_open_disposition.h" | 44 #include "ui/base/window_open_disposition.h" |
46 #include "ui/gfx/rect.h" | 45 #include "ui/gfx/rect.h" |
47 | 46 |
48 #if defined(OS_MACOSX) | 47 #if defined(OS_MACOSX) |
49 #include "chrome/browser/ui/browser_commands_mac.h" | 48 #include "chrome/browser/ui/browser_commands_mac.h" |
50 #endif | 49 #endif |
51 | 50 |
52 using content::WebContents; | 51 using content::WebContents; |
53 using extensions::Extension; | 52 using extensions::Extension; |
54 using extensions::ExtensionPrefs; | 53 using extensions::ExtensionPrefs; |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 | 460 |
462 return tab; | 461 return tab; |
463 } | 462 } |
464 | 463 |
465 bool CanLaunchViaEvent(const extensions::Extension* extension) { | 464 bool CanLaunchViaEvent(const extensions::Extension* extension) { |
466 const extensions::FeatureProvider* feature_provider = | 465 const extensions::FeatureProvider* feature_provider = |
467 extensions::FeatureProvider::GetAPIFeatures(); | 466 extensions::FeatureProvider::GetAPIFeatures(); |
468 extensions::Feature* feature = feature_provider->GetFeature("app.runtime"); | 467 extensions::Feature* feature = feature_provider->GetFeature("app.runtime"); |
469 return feature->IsAvailableToExtension(extension).is_available(); | 468 return feature->IsAvailableToExtension(extension).is_available(); |
470 } | 469 } |
OLD | NEW |