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

Side by Side Diff: components/test_runner/layout_test_runtime_flags.cc

Issue 1829253002: Replicate to all renderers the accepted languages set by a layout test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@splitting-web-frame-test-client
Patch Set: Quit early if the value doesn't really change. Created 4 years, 9 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/test_runner/layout_test_runtime_flags.h" 5 #include "components/test_runner/layout_test_runtime_flags.h"
6 6
7 namespace test_runner { 7 namespace test_runner {
8 8
9 LayoutTestRuntimeFlags::LayoutTestRuntimeFlags() { 9 LayoutTestRuntimeFlags::LayoutTestRuntimeFlags() {
10 Reset(); 10 Reset();
11 } 11 }
12 12
13 void LayoutTestRuntimeFlags::Reset() { 13 void LayoutTestRuntimeFlags::Reset() {
14 set_generate_pixel_results(true); 14 set_generate_pixel_results(true);
15 15
16 set_dump_as_text(false); 16 set_dump_as_text(false);
17 set_dump_child_frames_as_text(false); 17 set_dump_child_frames_as_text(false);
18 18
19 set_dump_as_markup(false); 19 set_dump_as_markup(false);
20 set_dump_child_frames_as_markup(false); 20 set_dump_child_frames_as_markup(false);
21 21
22 set_dump_child_frame_scroll_positions(false); 22 set_dump_child_frame_scroll_positions(false);
23 23
24 set_is_printing(false); 24 set_is_printing(false);
25 25
26 set_wait_until_done(false); 26 set_wait_until_done(false);
27 27
28 set_accept_languages("");
29
28 // No need to report the initial state - only the future delta is important. 30 // No need to report the initial state - only the future delta is important.
29 tracked_dictionary().ResetChangeTracking(); 31 tracked_dictionary().ResetChangeTracking();
30 } 32 }
31 33
32 } // namespace test_runner 34 } // namespace test_runner
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698