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

Unified Diff: chrome/test/reliability/page_load_test.cc

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the previous fix Created 9 years, 8 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/test/reliability/page_load_test.cc
diff --git a/chrome/test/reliability/page_load_test.cc b/chrome/test/reliability/page_load_test.cc
index e4c116126e0208ba40cb098b1923674447897ab3..cc6cc6f50114863e018c230b6d4e3fa060dfef2f 100644
--- a/chrome/test/reliability/page_load_test.cc
+++ b/chrome/test/reliability/page_load_test.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
@@ -639,11 +639,21 @@ class PageLoadTest : public UITest {
scoped_ptr<PrefService> local_state(GetLocalState());
if (!local_state.get())
return;
- local_state->RegisterBooleanPref(prefs::kStabilityExitedCleanly, false);
- local_state->RegisterIntegerPref(prefs::kStabilityLaunchCount, -1);
- local_state->RegisterIntegerPref(prefs::kStabilityPageLoadCount, -1);
- local_state->RegisterIntegerPref(prefs::kStabilityCrashCount, 0);
- local_state->RegisterIntegerPref(prefs::kStabilityRendererCrashCount, 0);
+ local_state->RegisterBooleanPref(prefs::kStabilityExitedCleanly,
+ false,
+ false /* don't sync pref */);
+ local_state->RegisterIntegerPref(prefs::kStabilityLaunchCount,
+ -1,
+ false /* don't sync pref */);
+ local_state->RegisterIntegerPref(prefs::kStabilityPageLoadCount,
+ -1,
+ false /* don't sync pref */);
+ local_state->RegisterIntegerPref(prefs::kStabilityCrashCount,
+ 0,
+ false /* don't sync pref */);
+ local_state->RegisterIntegerPref(prefs::kStabilityRendererCrashCount,
+ 0,
+ false /* don't sync pref */);
metrics->browser_clean_exit =
local_state->GetBoolean(prefs::kStabilityExitedCleanly);

Powered by Google App Engine
This is Rietveld 408576698