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

Unified Diff: chrome/browser/ui/browser_navigator_params.cc

Issue 1779793003: Remove host_desktop_type() from browser.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-43
Patch Set: cros Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser_navigator_params.h ('k') | chrome/browser/ui/chrome_pages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_navigator_params.cc
diff --git a/chrome/browser/ui/browser_navigator_params.cc b/chrome/browser/ui/browser_navigator_params.cc
index 0e19598de3273f034271dd264c9f7dfbad65f42b..9617e55723b2ee07a1f6adecff452885d3a3ff3f 100644
--- a/chrome/browser/ui/browser_navigator_params.cc
+++ b/chrome/browser/ui/browser_navigator_params.cc
@@ -11,7 +11,6 @@
#if !defined(OS_ANDROID)
#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/host_desktop.h"
#endif
using content::GlobalRequestID;
@@ -20,18 +19,6 @@ using content::WebContents;
namespace chrome {
-#if !defined(OS_ANDROID)
-namespace {
-
-HostDesktopType GetHostDesktop(Browser* browser) {
- if (browser)
- return browser->host_desktop_type();
- return GetActiveDesktop();
-}
-
-} // namespace
-#endif
-
#if defined(OS_ANDROID)
NavigateParams::NavigateParams(WebContents* a_target_contents)
: frame_tree_node_id(-1),
@@ -49,7 +36,6 @@ NavigateParams::NavigateParams(WebContents* a_target_contents)
path_behavior(RESPECT),
ref_behavior(IGNORE_REF),
initiating_profile(nullptr),
- host_desktop_type(GetActiveDesktop()),
should_replace_current_entry(false),
created_with_opener(false) {
}
@@ -74,7 +60,6 @@ NavigateParams::NavigateParams(Browser* a_browser,
ref_behavior(IGNORE_REF),
browser(a_browser),
initiating_profile(NULL),
- host_desktop_type(GetHostDesktop(a_browser)),
should_replace_current_entry(false),
created_with_opener(false) {
}
@@ -97,7 +82,6 @@ NavigateParams::NavigateParams(Browser* a_browser,
ref_behavior(IGNORE_REF),
browser(a_browser),
initiating_profile(NULL),
- host_desktop_type(GetHostDesktop(a_browser)),
should_replace_current_entry(false),
created_with_opener(false) {
}
@@ -125,7 +109,6 @@ NavigateParams::NavigateParams(Profile* a_profile,
browser(NULL),
#endif
initiating_profile(a_profile),
- host_desktop_type(GetActiveDesktop()),
should_replace_current_entry(false),
created_with_opener(false) {
}
« no previous file with comments | « chrome/browser/ui/browser_navigator_params.h ('k') | chrome/browser/ui/chrome_pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698