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

Side by Side Diff: components/web_view/navigation_entry.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 4 years, 11 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 "components/web_view/navigation_entry.h" 5 #include "components/web_view/navigation_entry.h"
6 6
7 #include <utility>
8
7 namespace web_view { 9 namespace web_view {
8 10
9 NavigationEntry::NavigationEntry(mojo::URLRequestPtr original_request) 11 NavigationEntry::NavigationEntry(mojo::URLRequestPtr original_request)
10 : url_request_(original_request.Pass()) { 12 : url_request_(std::move(original_request)) {
11 if (url_request_.originating_time().is_null()) 13 if (url_request_.originating_time().is_null())
12 url_request_.set_originating_time(base::TimeTicks::Now()); 14 url_request_.set_originating_time(base::TimeTicks::Now());
13 } 15 }
14 16
15 NavigationEntry::NavigationEntry(const GURL& raw_url) 17 NavigationEntry::NavigationEntry(const GURL& raw_url)
16 : url_request_(raw_url) {} 18 : url_request_(raw_url) {}
17 19
18 NavigationEntry::~NavigationEntry() {} 20 NavigationEntry::~NavigationEntry() {}
19 21
20 mojo::URLRequestPtr NavigationEntry::BuildURLRequest( 22 mojo::URLRequestPtr NavigationEntry::BuildURLRequest(
21 bool update_originating_time) { 23 bool update_originating_time) {
22 if (update_originating_time) 24 if (update_originating_time)
23 url_request_.set_originating_time(base::TimeTicks::Now()); 25 url_request_.set_originating_time(base::TimeTicks::Now());
24 return url_request_.Clone(); 26 return url_request_.Clone();
25 } 27 }
26 28
27 } // namespace web_view 29 } // namespace web_view
OLDNEW
« no previous file with comments | « components/web_view/navigation_controller.cc ('k') | components/web_view/pending_web_view_load.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698