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

Side by Side Diff: content/shell/browser/layout_test/blink_test_controller.cc

Issue 2101943004: content: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase/update Created 4 years, 5 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
« no previous file with comments | « content/renderer/scheduler/resource_dispatch_throttler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/shell/browser/layout_test/blink_test_controller.h" 5 #include "content/shell/browser/layout_test/blink_test_controller.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <iostream> 9 #include <iostream>
10 #include <set> 10 #include <set>
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 DCHECK(insertion_took_place); 727 DCHECK(insertion_took_place);
728 728
729 // See if we need to wait for more responses. 729 // See if we need to wait for more responses.
730 pending_layout_dumps_--; 730 pending_layout_dumps_--;
731 DCHECK_LE(0, pending_layout_dumps_); 731 DCHECK_LE(0, pending_layout_dumps_);
732 if (pending_layout_dumps_ > 0) 732 if (pending_layout_dumps_ > 0)
733 return; 733 return;
734 734
735 // Stitch the frame-specific results in the right order. 735 // Stitch the frame-specific results in the right order.
736 std::string stitched_layout_dump; 736 std::string stitched_layout_dump;
737 for (const auto& render_frame_host : web_contents()->GetAllFrames()) { 737 for (auto* render_frame_host : web_contents()->GetAllFrames()) {
738 auto it = 738 auto it =
739 frame_to_layout_dump_map_.find(render_frame_host->GetFrameTreeNodeId()); 739 frame_to_layout_dump_map_.find(render_frame_host->GetFrameTreeNodeId());
740 if (it != frame_to_layout_dump_map_.end()) { 740 if (it != frame_to_layout_dump_map_.end()) {
741 const std::string& dump = it->second; 741 const std::string& dump = it->second;
742 stitched_layout_dump.append(dump); 742 stitched_layout_dump.append(dump);
743 } 743 }
744 } 744 }
745 745
746 // Continue finishing the test. 746 // Continue finishing the test.
747 RenderViewHost* render_view_host = 747 RenderViewHost* render_view_host =
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 } else { 937 } else {
938 printer_->AddErrorMessage(base::StringPrintf( 938 printer_->AddErrorMessage(base::StringPrintf(
939 "FAIL: Unexpected sendBluetoothManualChooserEvent() event name '%s'.", 939 "FAIL: Unexpected sendBluetoothManualChooserEvent() event name '%s'.",
940 event_name.c_str())); 940 event_name.c_str()));
941 return; 941 return;
942 } 942 }
943 bluetooth_chooser_factory_->SendEvent(event, argument); 943 bluetooth_chooser_factory_->SendEvent(event, argument);
944 } 944 }
945 945
946 } // namespace content 946 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/scheduler/resource_dispatch_throttler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698