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

Unified Diff: chrome/browser/password_manager/native_backend_libsecret_unittest.cc

Issue 2169263002: chrome/browser/password_manager: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/password_manager/native_backend_libsecret_unittest.cc
diff --git a/chrome/browser/password_manager/native_backend_libsecret_unittest.cc b/chrome/browser/password_manager/native_backend_libsecret_unittest.cc
index f9db9a3cf45a9f4607032b182bf19031c3bac80c..84480e940a64b372a81333fa4d5c3168b49ef0ff 100644
--- a/chrome/browser/password_manager/native_backend_libsecret_unittest.cc
+++ b/chrome/browser/password_manager/native_backend_libsecret_unittest.cc
@@ -162,7 +162,7 @@ gboolean mock_secret_password_clear_sync(const SecretSchema* schema,
ScopedVector<MockSecretItem> kept_mock_libsecret_items;
kept_mock_libsecret_items.reserve(global_mock_libsecret_items->size());
- for (auto& item : *global_mock_libsecret_items) {
+ for (auto*& item : *global_mock_libsecret_items) {
if (!Matches(item, attributes)) {
kept_mock_libsecret_items.push_back(item);
item = nullptr;
@@ -895,7 +895,7 @@ TEST_F(NativeBackendLibsecretTest, DisableAutoSignInForOrigins) {
VerifiedAdd(&backend, form_facebook_);
EXPECT_EQ(2u, global_mock_libsecret_items->size());
- for (const auto& item : *global_mock_libsecret_items)
+ for (auto* item : *global_mock_libsecret_items)
CheckUint32Attribute(item, "should_skip_zero_click", 0);
// Set the canonical forms to the updated value for the following comparison.

Powered by Google App Engine
This is Rietveld 408576698