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

Side by Side Diff: components/password_manager/core/browser/login_database.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/password_manager/core/browser/login_database.h" 5 #include "components/password_manager/core/browser/login_database.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9
10 #include <algorithm> 9 #include <algorithm>
11 #include <limits> 10 #include <limits>
11 #include <utility>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/metrics/histogram_macros.h" 17 #include "base/metrics/histogram_macros.h"
18 #include "base/metrics/sparse_histogram.h" 18 #include "base/metrics/sparse_histogram.h"
19 #include "base/pickle.h" 19 #include "base/pickle.h"
20 #include "base/stl_util.h" 20 #include "base/stl_util.h"
21 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1280 continue; // Ignore non-HTML matches. 1280 continue; // Ignore non-HTML matches.
1281 1281
1282 if (!IsPublicSuffixDomainMatch(new_form->signon_realm, 1282 if (!IsPublicSuffixDomainMatch(new_form->signon_realm,
1283 psl_match->signon_realm)) { 1283 psl_match->signon_realm)) {
1284 continue; 1284 continue;
1285 } 1285 }
1286 1286
1287 psl_domain_match_metric = PSL_DOMAIN_MATCH_FOUND; 1287 psl_domain_match_metric = PSL_DOMAIN_MATCH_FOUND;
1288 new_form->is_public_suffix_match = true; 1288 new_form->is_public_suffix_match = true;
1289 } 1289 }
1290 forms->push_back(new_form.Pass()); 1290 forms->push_back(std::move(new_form));
1291 } 1291 }
1292 1292
1293 if (psl_match) { 1293 if (psl_match) {
1294 UMA_HISTOGRAM_ENUMERATION("PasswordManager.PslDomainMatchTriggering", 1294 UMA_HISTOGRAM_ENUMERATION("PasswordManager.PslDomainMatchTriggering",
1295 psl_domain_match_metric, PSL_DOMAIN_MATCH_COUNT); 1295 psl_domain_match_metric, PSL_DOMAIN_MATCH_COUNT);
1296 } 1296 }
1297 1297
1298 if (!statement->Succeeded()) 1298 if (!statement->Succeeded())
1299 return false; 1299 return false;
1300 return true; 1300 return true;
1301 } 1301 }
1302 1302
1303 } // namespace password_manager 1303 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698