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

Side by Side Diff: chrome/browser/sync/test/integration/extensions_helper.cc

Issue 705033002: [content/browser/sync] Convert VLOGs to DVLOGs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/quiesce_status_change_checker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/sync/test/integration/extensions_helper.h" 5 #include "chrome/browser/sync/test/integration/extensions_helper.h"
6 6
7 #include <cstring> 7 #include <cstring>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 synced_extension_installers_.push_back(new SyncedExtensionInstaller(*it)); 241 synced_extension_installers_.push_back(new SyncedExtensionInstaller(*it));
242 242
243 extensions::ExtensionRegistry* registry = 243 extensions::ExtensionRegistry* registry =
244 extensions::ExtensionRegistry::Get(*it); 244 extensions::ExtensionRegistry::Get(*it);
245 registry->AddObserver(this); 245 registry->AddObserver(this);
246 } 246 }
247 247
248 observing_ = true; 248 observing_ = true;
249 249
250 if (IsExitConditionSatisfied()) { 250 if (IsExitConditionSatisfied()) {
251 VLOG(1) << "Extensions matched without waiting"; 251 DVLOG(1) << "Extensions matched without waiting";
252 return; 252 return;
253 } 253 }
254 254
255 VLOG(1) << "Starting Wait: " << GetDebugMessage(); 255 DVLOG(1) << "Starting Wait: " << GetDebugMessage();
256 StartBlockingWait(); 256 StartBlockingWait();
257 } 257 }
258 258
259 } // namespace 259 } // namespace
260 260
261 bool AwaitAllProfilesHaveSameExtensionsAsVerifier() { 261 bool AwaitAllProfilesHaveSameExtensionsAsVerifier() {
262 std::vector<Profile*> profiles; 262 std::vector<Profile*> profiles;
263 profiles.push_back(test()->verifier()); 263 profiles.push_back(test()->verifier());
264 for (int i = 0; i < test()->num_clients(); ++i) { 264 for (int i = 0; i < test()->num_clients(); ++i) {
265 profiles.push_back(test()->GetProfile(i)); 265 profiles.push_back(test()->GetProfile(i));
266 } 266 }
267 267
268 ExtensionsMatchChecker checker(profiles); 268 ExtensionsMatchChecker checker(profiles);
269 checker.Wait(); 269 checker.Wait();
270 return !checker.TimedOut(); 270 return !checker.TimedOut();
271 } 271 }
272 272
273 } // namespace extensions_helper 273 } // namespace extensions_helper
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/quiesce_status_change_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698