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

Side by Side Diff: chrome/browser/android/data_usage/data_use_matcher.cc

Issue 1551033002: Convert Pass()→std::move() in //chrome (Android edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable RVO by making types match 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 "chrome/browser/android/data_usage/data_use_matcher.h" 5 #include "chrome/browser/android/data_usage/data_use_matcher.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 *expiration = 149 *expiration =
150 tick_clock_->NowTicks() + default_matching_rule_expiration_duration_; 150 tick_clock_->NowTicks() + default_matching_rule_expiration_duration_;
151 *new_app_package_name = app_package_name; 151 *new_app_package_name = app_package_name;
152 } 152 }
153 153
154 DataUseMatcher::MatchingRule::MatchingRule(const std::string& app_package_name, 154 DataUseMatcher::MatchingRule::MatchingRule(const std::string& app_package_name,
155 scoped_ptr<re2::RE2> pattern, 155 scoped_ptr<re2::RE2> pattern,
156 const std::string& label, 156 const std::string& label,
157 const base::TimeTicks& expiration) 157 const base::TimeTicks& expiration)
158 : app_package_name_(app_package_name), 158 : app_package_name_(app_package_name),
159 pattern_(pattern.Pass()), 159 pattern_(std::move(pattern)),
160 label_(label), 160 label_(label),
161 expiration_(expiration) {} 161 expiration_(expiration) {}
162 162
163 DataUseMatcher::MatchingRule::~MatchingRule() {} 163 DataUseMatcher::MatchingRule::~MatchingRule() {}
164 164
165 const re2::RE2* DataUseMatcher::MatchingRule::pattern() const { 165 const re2::RE2* DataUseMatcher::MatchingRule::pattern() const {
166 return pattern_.get(); 166 return pattern_.get();
167 } 167 }
168 168
169 const std::string& DataUseMatcher::MatchingRule::app_package_name() const { 169 const std::string& DataUseMatcher::MatchingRule::app_package_name() const {
170 return app_package_name_; 170 return app_package_name_;
171 } 171 }
172 172
173 const std::string& DataUseMatcher::MatchingRule::label() const { 173 const std::string& DataUseMatcher::MatchingRule::label() const {
174 return label_; 174 return label_;
175 } 175 }
176 176
177 const base::TimeTicks& DataUseMatcher::MatchingRule::expiration() const { 177 const base::TimeTicks& DataUseMatcher::MatchingRule::expiration() const {
178 return expiration_; 178 return expiration_;
179 } 179 }
180 180
181 } // namespace android 181 } // namespace android
182 182
183 } // namespace chrome 183 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/android/compositor/tab_content_manager.cc ('k') | chrome/browser/android/dev_tools_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698