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

Unified Diff: chrome/browser/supervised_user/supervised_user_registration_utility_unittest.cc

Issue 615493005: c/b/supervised_user: Use range-based for where appropriate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix CrOS Created 6 years, 3 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/supervised_user/supervised_user_registration_utility_unittest.cc
diff --git a/chrome/browser/supervised_user/supervised_user_registration_utility_unittest.cc b/chrome/browser/supervised_user/supervised_user_registration_utility_unittest.cc
index a3b81f4cff9b71a936017eba3c21fc16accf19f4..9484e801dd9166cc17318305ea69d861416eb051 100644
--- a/chrome/browser/supervised_user/supervised_user_registration_utility_unittest.cc
+++ b/chrome/browser/supervised_user/supervised_user_registration_utility_unittest.cc
@@ -215,11 +215,10 @@ SupervisedUserRegistrationUtilityTest::GetRegistrationUtility() {
void SupervisedUserRegistrationUtilityTest::Acknowledge() {
SyncChangeList new_changes;
- const SyncChangeList& changes = change_processor()->changes();
- for (SyncChangeList::const_iterator it = changes.begin(); it != changes.end();
- ++it) {
- EXPECT_EQ(SyncChange::ACTION_ADD, it->change_type());
- ::sync_pb::EntitySpecifics specifics = it->sync_data().GetSpecifics();
+ for (const SyncChange& sync_change : change_processor()->changes()) {
+ EXPECT_EQ(SyncChange::ACTION_ADD, sync_change.change_type());
+ ::sync_pb::EntitySpecifics specifics =
+ sync_change.sync_data().GetSpecifics();
EXPECT_FALSE(specifics.managed_user().acknowledged());
specifics.mutable_managed_user()->set_acknowledged(true);
new_changes.push_back(

Powered by Google App Engine
This is Rietveld 408576698