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

Side by Side Diff: ios/chrome/browser/sessions/ios_chrome_tab_restore_service_client.mm

Issue 2868983003: Ensure History > Recent Tabs restore preserves window disposition. (Closed)
Patch Set: Small fix to WindowCommandFields. Created 3 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/sessions/ios_chrome_tab_restore_service_client.h" 5 #include "ios/chrome/browser/sessions/ios_chrome_tab_restore_service_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "components/sessions/ios/ios_live_tab.h" 9 #include "components/sessions/ios/ios_live_tab.h"
10 #include "ios/chrome/browser/application_context.h" 10 #include "ios/chrome/browser/application_context.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } // namespace 64 } // namespace
65 65
66 IOSChromeTabRestoreServiceClient::IOSChromeTabRestoreServiceClient( 66 IOSChromeTabRestoreServiceClient::IOSChromeTabRestoreServiceClient(
67 ios::ChromeBrowserState* browser_state) 67 ios::ChromeBrowserState* browser_state)
68 : browser_state_(browser_state) {} 68 : browser_state_(browser_state) {}
69 69
70 IOSChromeTabRestoreServiceClient::~IOSChromeTabRestoreServiceClient() {} 70 IOSChromeTabRestoreServiceClient::~IOSChromeTabRestoreServiceClient() {}
71 71
72 sessions::LiveTabContext* 72 sessions::LiveTabContext*
73 IOSChromeTabRestoreServiceClient::CreateLiveTabContext( 73 IOSChromeTabRestoreServiceClient::CreateLiveTabContext(
74 const std::string& app_name) { 74 const std::string& unused_app_name,
sky 2017/07/11 20:28:09 Parameters should match that of the header.
chrisha 2017/08/14 14:43:21 I'm generally in favor of that, but I suppose I se
75 const gfx::Rect& unused_bounds,
76 ui::WindowShowState unused_show_state,
77 const std::string& unused_workspace) {
75 return TabRestoreServiceDelegateImplIOSFactory::GetForBrowserState( 78 return TabRestoreServiceDelegateImplIOSFactory::GetForBrowserState(
76 browser_state_); 79 browser_state_);
77 } 80 }
78 81
79 sessions::LiveTabContext* 82 sessions::LiveTabContext*
80 IOSChromeTabRestoreServiceClient::FindLiveTabContextForTab( 83 IOSChromeTabRestoreServiceClient::FindLiveTabContextForTab(
81 const sessions::LiveTab* tab) { 84 const sessions::LiveTab* tab) {
82 const sessions::IOSLiveTab* requested_tab = 85 const sessions::IOSLiveTab* requested_tab =
83 static_cast<const sessions::IOSLiveTab*>(tab); 86 static_cast<const sessions::IOSLiveTab*>(tab);
84 87
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 139
137 bool IOSChromeTabRestoreServiceClient::HasLastSession() { 140 bool IOSChromeTabRestoreServiceClient::HasLastSession() {
138 return false; 141 return false;
139 } 142 }
140 143
141 void IOSChromeTabRestoreServiceClient::GetLastSession( 144 void IOSChromeTabRestoreServiceClient::GetLastSession(
142 const sessions::GetLastSessionCallback& callback, 145 const sessions::GetLastSessionCallback& callback,
143 base::CancelableTaskTracker* tracker) { 146 base::CancelableTaskTracker* tracker) {
144 NOTREACHED(); 147 NOTREACHED();
145 } 148 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698