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

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

Issue 2512993002: [ObjC ARC] Converts ios/chrome/browser/sessions:sessions to ARC.Automatically generated ARCMigrat… (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « ios/chrome/browser/sessions/ios_chrome_session_tab_helper.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ios/chrome/browser/browser_state/chrome_browser_state.h" 7 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
8 #include "ios/chrome/browser/chrome_url_constants.h" 8 #include "ios/chrome/browser/chrome_url_constants.h"
9 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" 9 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
10 #include "ios/public/provider/chrome/browser/sessions/live_tab_context_provider. h" 10 #include "ios/public/provider/chrome/browser/sessions/live_tab_context_provider. h"
11 #include "ios/web/public/web_thread.h" 11 #include "ios/web/public/web_thread.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 #if !defined(__has_feature) || !__has_feature(objc_arc)
15 #error "This file requires ARC support."
16 #endif
17
14 IOSChromeTabRestoreServiceClient::IOSChromeTabRestoreServiceClient( 18 IOSChromeTabRestoreServiceClient::IOSChromeTabRestoreServiceClient(
15 ios::ChromeBrowserState* browser_state) 19 ios::ChromeBrowserState* browser_state)
16 : browser_state_(browser_state) {} 20 : browser_state_(browser_state) {}
17 21
18 IOSChromeTabRestoreServiceClient::~IOSChromeTabRestoreServiceClient() {} 22 IOSChromeTabRestoreServiceClient::~IOSChromeTabRestoreServiceClient() {}
19 23
20 sessions::LiveTabContext* 24 sessions::LiveTabContext*
21 IOSChromeTabRestoreServiceClient::CreateLiveTabContext( 25 IOSChromeTabRestoreServiceClient::CreateLiveTabContext(
22 const std::string& app_name) { 26 const std::string& app_name) {
23 return ios::GetChromeBrowserProvider()->GetLiveTabContextProvider()->Create( 27 return ios::GetChromeBrowserProvider()->GetLiveTabContextProvider()->Create(
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 76
73 bool IOSChromeTabRestoreServiceClient::HasLastSession() { 77 bool IOSChromeTabRestoreServiceClient::HasLastSession() {
74 return false; 78 return false;
75 } 79 }
76 80
77 void IOSChromeTabRestoreServiceClient::GetLastSession( 81 void IOSChromeTabRestoreServiceClient::GetLastSession(
78 const sessions::GetLastSessionCallback& callback, 82 const sessions::GetLastSessionCallback& callback,
79 base::CancelableTaskTracker* tracker) { 83 base::CancelableTaskTracker* tracker) {
80 NOTREACHED(); 84 NOTREACHED();
81 } 85 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/sessions/ios_chrome_session_tab_helper.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698