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

Side by Side Diff: chrome_frame/test/reliability/page_load_test.cc

Issue 11027070: Moved JsonPrefStore to use SequencedWorkerPool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
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 // This file provides reliablity tests which run for ChromeFrame. 5 // This file provides reliablity tests which run for ChromeFrame.
6 // 6 //
7 // Usage: 7 // Usage:
8 // <reliability test exe> --list=file --startline=start --endline=end [...] 8 // <reliability test exe> --list=file --startline=start --endline=end [...]
9 // Upon invocation, it visits each of the URLs on line numbers between start 9 // Upon invocation, it visits each of the URLs on line numbers between start
10 // and end, inclusive, stored in the input file. The line number starts from 1. 10 // and end, inclusive, stored in the input file. The line number starts from 1.
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 if (metrics) 423 if (metrics)
424 metrics->crash_dump_count = num_dumps; 424 metrics->crash_dump_count = num_dumps;
425 } 425 }
426 426
427 // Get a PrefService whose contents correspond to the Local State file 427 // Get a PrefService whose contents correspond to the Local State file
428 // that was saved by the app as it closed. The caller takes ownership of the 428 // that was saved by the app as it closed. The caller takes ownership of the
429 // returned PrefService object. 429 // returned PrefService object.
430 PrefService* GetLocalState() { 430 PrefService* GetLocalState() {
431 FilePath path; 431 FilePath path;
432 chrome::GetChromeFrameUserDataDirectory(&path); 432 chrome::GetChromeFrameUserDataDirectory(&path);
433 return PrefServiceMockBuilder().WithUserFilePrefs(path).Create(); 433 return PrefServiceMockBuilder().WithUserFilePrefs(
434 path, message_loop_.message_loop_proxy()).Create();
434 } 435 }
435 436
436 void GetStabilityMetrics(NavigationMetrics* metrics) { 437 void GetStabilityMetrics(NavigationMetrics* metrics) {
437 if (!metrics) 438 if (!metrics)
438 return; 439 return;
439 scoped_ptr<PrefService> local_state(GetLocalState()); 440 scoped_ptr<PrefService> local_state(GetLocalState());
440 if (!local_state.get()) 441 if (!local_state.get())
441 return; 442 return;
442 local_state->RegisterBooleanPref(prefs::kStabilityExitedCleanly, false); 443 local_state->RegisterBooleanPref(prefs::kStabilityExitedCleanly, false);
443 local_state->RegisterIntegerPref(prefs::kStabilityLaunchCount, -1); 444 local_state->RegisterIntegerPref(prefs::kStabilityLaunchCount, -1);
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags)); 580 parsed_command_line.GetSwitchValuePath(switches::kJavaScriptFlags));
580 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { 581 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) {
581 g_v8_log_path = v8_command_line.GetSwitchValuePath(kV8LogFileSwitch); 582 g_v8_log_path = v8_command_line.GetSwitchValuePath(kV8LogFileSwitch);
582 if (!file_util::AbsolutePath(&g_v8_log_path)) 583 if (!file_util::AbsolutePath(&g_v8_log_path))
583 g_v8_log_path = FilePath(); 584 g_v8_log_path = FilePath();
584 } 585 }
585 } 586 }
586 } 587 }
587 } 588 }
588 } 589 }
OLDNEW
« chrome/service/service_process_prefs.h ('K') | « chrome/test/reliability/page_load_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698