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

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

Issue 1336993002: Straighten up includes of host_desktop.h/host_desktop_type.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@host_desktop_type
Patch Set: Build fixes for Windows and Mac Created 5 years, 3 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
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 "chrome/browser/ui/extensions/app_launch_params.h" 5 #include "chrome/browser/ui/extensions/app_launch_params.h"
6 6
7 #include "chrome/browser/extensions/launch_util.h" 7 #include "chrome/browser/extensions/launch_util.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/host_desktop.h"
9 #include "extensions/browser/extension_prefs.h" 10 #include "extensions/browser/extension_prefs.h"
10 #include "extensions/common/constants.h" 11 #include "extensions/common/constants.h"
11 #include "extensions/common/extension.h" 12 #include "extensions/common/extension.h"
12 #include "ui/base/window_open_disposition.h" 13 #include "ui/base/window_open_disposition.h"
13 14
14 using extensions::ExtensionPrefs; 15 using extensions::ExtensionPrefs;
15 16
16 AppLaunchParams::AppLaunchParams(Profile* profile, 17 AppLaunchParams::AppLaunchParams(Profile* profile,
17 const extensions::Extension* extension, 18 const extensions::Extension* extension,
18 extensions::LaunchContainer container, 19 extensions::LaunchContainer container,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Look at preference to find the right launch container. If no preference 73 // Look at preference to find the right launch container. If no preference
73 // is set, launch as a regular tab. 74 // is set, launch as a regular tab.
74 container = 75 container =
75 extensions::GetLaunchContainer(ExtensionPrefs::Get(profile), extension); 76 extensions::GetLaunchContainer(ExtensionPrefs::Get(profile), extension);
76 disposition = NEW_FOREGROUND_TAB; 77 disposition = NEW_FOREGROUND_TAB;
77 } 78 }
78 } 79 }
79 80
80 AppLaunchParams::~AppLaunchParams() { 81 AppLaunchParams::~AppLaunchParams() {
81 } 82 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/app_launch_params.h ('k') | chrome/browser/ui/extensions/extension_install_ui_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698