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

Unified Diff: chrome/browser/sync/profile_sync_service_session_unittest.cc

Issue 7621061: Restoring a session should restore window minimization state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing Mark's comments. Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sessions/session_types.cc ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service_session_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_session_unittest.cc b/chrome/browser/sync/profile_sync_service_session_unittest.cc
index fa2a5ec7abc64cad77146d7f1a382ed1cd3cb36c..5c74b74a989339a898fdf9438899c9d124b691e1 100644
--- a/chrome/browser/sync/profile_sync_service_session_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_session_unittest.cc
@@ -43,6 +43,7 @@
#include "content/common/notification_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "ui/base/ui_base_types.h"
using browser_sync::SessionChangeProcessor;
using browser_sync::SessionDataTypeController;
@@ -81,7 +82,9 @@ class ProfileSyncServiceSessionTest
SessionService* session_service = new SessionService(temp_dir_.path());
helper_.set_service(session_service);
service()->SetWindowType(window_id_, Browser::TYPE_TABBED);
- service()->SetWindowBounds(window_id_, window_bounds_, false);
+ service()->SetWindowBounds(window_id_,
+ window_bounds_,
+ ui::SHOW_STATE_NORMAL);
registrar_.Add(this, chrome::NOTIFICATION_FOREIGN_SESSION_UPDATED,
NotificationService::AllSources());
}
« no previous file with comments | « chrome/browser/sessions/session_types.cc ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698