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

Side by Side Diff: content/test/content_browser_test_utils_internal.cc

Issue 248963007: Perform navigation policy check on UI thread for --site-per-process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT. Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/test/content_browser_test_utils_internal.h"
6
7 #include "content/browser/frame_host/frame_tree_node.h"
8 #include "content/browser/frame_host/navigator.h"
9 #include "content/test/test_frame_navigation_observer.h"
10 #include "url/gurl.h"
11
12 namespace content {
13
14 void NavigateFrameToURL(FrameTreeNode* node, const GURL& url) {
15 TestFrameNavigationObserver observer(node);
16 NavigationController::LoadURLParams params(url);
17 params.transition_type = PageTransitionFromInt(PAGE_TRANSITION_LINK);
18 params.frame_tree_node_id = node->frame_tree_node_id();
19 node->navigator()->GetController()->LoadURLWithParams(params);
20 observer.Wait();
21 }
22
23 } // namespace content
OLDNEW
« no previous file with comments | « content/test/content_browser_test_utils_internal.h ('k') | content/test/test_frame_navigation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698