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

Side by Side Diff: ios/web/navigation/navigation_manager_impl.mm

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/web/navigation/navigation_manager_impl.h" 5 #include "ios/web/navigation/navigation_manager_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 } 299 }
300 } 300 }
301 301
302 void NavigationManagerImpl::Reload(bool check_for_reposts) { 302 void NavigationManagerImpl::Reload(bool check_for_reposts) {
303 NavigationItem* item = GetVisibleItem(); 303 NavigationItem* item = GetVisibleItem();
304 WebState::OpenURLParams params(item->GetURL(), item->GetReferrer(), 304 WebState::OpenURLParams params(item->GetURL(), item->GetReferrer(),
305 CURRENT_TAB, ui::PAGE_TRANSITION_RELOAD, NO); 305 CURRENT_TAB, ui::PAGE_TRANSITION_RELOAD, NO);
306 delegate_->GetWebState()->OpenURL(params); 306 delegate_->GetWebState()->OpenURL(params);
307 } 307 }
308 308
309 scoped_ptr<std::vector<BrowserURLRewriter::URLRewriter>> 309 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>>
310 NavigationManagerImpl::GetTransientURLRewriters() { 310 NavigationManagerImpl::GetTransientURLRewriters() {
311 return std::move(transient_url_rewriters_); 311 return std::move(transient_url_rewriters_);
312 } 312 }
313 313
314 void NavigationManagerImpl::RemoveTransientURLRewriters() { 314 void NavigationManagerImpl::RemoveTransientURLRewriters() {
315 transient_url_rewriters_.reset(); 315 transient_url_rewriters_.reset();
316 } 316 }
317 317
318 void NavigationManagerImpl::CopyState( 318 void NavigationManagerImpl::CopyState(
319 NavigationManagerImpl* navigation_manager) { 319 NavigationManagerImpl* navigation_manager) {
320 SetSessionController( 320 SetSessionController(
321 [[navigation_manager->GetSessionController() copy] autorelease]); 321 [[navigation_manager->GetSessionController() copy] autorelease]);
322 } 322 }
323 323
324 } // namespace web 324 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/navigation/navigation_manager_impl.h ('k') | ios/web/navigation/navigation_manager_impl_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698