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

Side by Side Diff: chrome/browser/ui/extensions/application_launch.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 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 | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698