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

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: Remove NOTREACHED(). Created 3 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 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } // namespace 63 } // namespace
64 64
65 IOSChromeTabRestoreServiceClient::IOSChromeTabRestoreServiceClient( 65 IOSChromeTabRestoreServiceClient::IOSChromeTabRestoreServiceClient(
66 ios::ChromeBrowserState* browser_state) 66 ios::ChromeBrowserState* browser_state)
67 : browser_state_(browser_state) {} 67 : browser_state_(browser_state) {}
68 68
69 IOSChromeTabRestoreServiceClient::~IOSChromeTabRestoreServiceClient() {} 69 IOSChromeTabRestoreServiceClient::~IOSChromeTabRestoreServiceClient() {}
70 70
71 sessions::LiveTabContext* 71 sessions::LiveTabContext*
72 IOSChromeTabRestoreServiceClient::CreateLiveTabContext( 72 IOSChromeTabRestoreServiceClient::CreateLiveTabContext(
73 const std::string& app_name) { 73 const std::string& /* app_name */,
74 const gfx::Rect& /* bounds */,
75 ui::WindowShowState /* show_state */,
76 const std::string& /* workspace */) {
74 return TabRestoreServiceDelegateImplIOSFactory::GetForBrowserState( 77 return TabRestoreServiceDelegateImplIOSFactory::GetForBrowserState(
75 browser_state_); 78 browser_state_);
76 } 79 }
77 80
78 sessions::LiveTabContext* 81 sessions::LiveTabContext*
79 IOSChromeTabRestoreServiceClient::FindLiveTabContextForTab( 82 IOSChromeTabRestoreServiceClient::FindLiveTabContextForTab(
80 const sessions::LiveTab* tab) { 83 const sessions::LiveTab* tab) {
81 const sessions::IOSLiveTab* requested_tab = 84 const sessions::IOSLiveTab* requested_tab =
82 static_cast<const sessions::IOSLiveTab*>(tab); 85 static_cast<const sessions::IOSLiveTab*>(tab);
83 86
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 133
131 bool IOSChromeTabRestoreServiceClient::HasLastSession() { 134 bool IOSChromeTabRestoreServiceClient::HasLastSession() {
132 return false; 135 return false;
133 } 136 }
134 137
135 void IOSChromeTabRestoreServiceClient::GetLastSession( 138 void IOSChromeTabRestoreServiceClient::GetLastSession(
136 const sessions::GetLastSessionCallback& callback, 139 const sessions::GetLastSessionCallback& callback,
137 base::CancelableTaskTracker* tracker) { 140 base::CancelableTaskTracker* tracker) {
138 NOTREACHED(); 141 NOTREACHED();
139 } 142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698