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

Unified Diff: chrome/browser/supervised_user/supervised_user_shared_settings_service_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_shared_settings_service_unittest.cc
diff --git a/chrome/browser/supervised_user/supervised_user_shared_settings_service_unittest.cc b/chrome/browser/supervised_user/supervised_user_shared_settings_service_unittest.cc
index cee796944078096b66e590d596aad41e696d0729..f4e54b5d0f3c18f6316ca273a6f85d4dc70ac997 100644
--- a/chrome/browser/supervised_user/supervised_user_shared_settings_service_unittest.cc
+++ b/chrome/browser/supervised_user/supervised_user_shared_settings_service_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <string>
+
#include "base/bind.h"
#include "base/json/json_writer.h"
#include "base/prefs/pref_service.h"
@@ -101,11 +103,9 @@ class SupervisedUserSharedSettingsServiceTest : public ::testing::Test {
void VerifySyncChangesAndClear() {
SyncChangeList& changes = sync_processor_->changes();
- for (SyncChangeList::const_iterator it = changes.begin();
- it != changes.end();
- ++it) {
+ for (const SyncChange& sync_change : changes) {
const sync_pb::ManagedUserSharedSettingSpecifics& setting =
- it->sync_data().GetSpecifics().managed_user_shared_setting();
+ sync_change.sync_data().GetSpecifics().managed_user_shared_setting();
EXPECT_EQ(
setting.value(),
ToJson(settings_service_.GetValue(setting.mu_id(), setting.key())));

Powered by Google App Engine
This is Rietveld 408576698