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

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 11085053: Improving window auto management between workspaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed as requested. Corner cases will have to be addressed as they show Created 8 years, 2 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
Index: chrome/browser/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index c87817ab0ecdc7cbaeac72ef5e68f12024305cc4..9431ff3e0149d95490512de281f44259739d1a52 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -553,7 +553,8 @@ class SessionRestoreImpl : public content::NotificationObserver {
static_cast<Browser::Type>((*i)->type),
(*i)->bounds,
(*i)->show_state,
- (*i)->app_name);
+ (*i)->app_name,
+ (*i)->user_has_changed_window_or_position);
// Restore and show the browser.
const int initial_tab_count = 0;
@@ -826,7 +827,8 @@ class SessionRestoreImpl : public content::NotificationObserver {
static_cast<Browser::Type>((*i)->type),
(*i)->bounds,
show_state,
- (*i)->app_name);
+ (*i)->app_name,
+ (*i)->user_has_changed_window_or_position);
}
#if defined(OS_CHROMEOS)
chromeos::BootTimesLoader::Get()->AddLoginTimeMarker(
@@ -1000,12 +1002,15 @@ class SessionRestoreImpl : public content::NotificationObserver {
Browser* CreateRestoredBrowser(Browser::Type type,
gfx::Rect bounds,
ui::WindowShowState show_state,
- const std::string& app_name) {
+ const std::string& app_name,
+ bool user_has_changed_window_or_position) {
Browser::CreateParams params(type, profile_);
params.app_name = app_name;
params.initial_bounds = bounds;
params.initial_show_state = show_state;
params.is_session_restore = true;
+ params.initial_user_has_changed_window_or_position =
+ user_has_changed_window_or_position;
return new Browser(params);
}

Powered by Google App Engine
This is Rietveld 408576698