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

Side by Side Diff: android_webview/browser/aw_contents_client_bridge_base.cc

Issue 1013843002: favor DCHECK_CURRENTLY_ON for better logs in android_webview/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change a few more Created 5 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "android_webview/browser/aw_contents_client_bridge_base.h" 5 #include "android_webview/browser/aw_contents_client_bridge_base.h"
6 6
7 #include "content/public/browser/browser_thread.h" 7 #include "content/public/browser/browser_thread.h"
8 #include "content/public/browser/render_frame_host.h" 8 #include "content/public/browser/render_frame_host.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // static 50 // static
51 AwContentsClientBridgeBase* AwContentsClientBridgeBase::FromWebContents( 51 AwContentsClientBridgeBase* AwContentsClientBridgeBase::FromWebContents(
52 WebContents* web_contents) { 52 WebContents* web_contents) {
53 return UserData::GetContents(web_contents); 53 return UserData::GetContents(web_contents);
54 } 54 }
55 55
56 // static 56 // static
57 AwContentsClientBridgeBase* AwContentsClientBridgeBase::FromID( 57 AwContentsClientBridgeBase* AwContentsClientBridgeBase::FromID(
58 int render_process_id, 58 int render_process_id,
59 int render_frame_id) { 59 int render_frame_id) {
60 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 60 DCHECK_CURRENTLY_ON(BrowserThread::UI);
61 content::RenderFrameHost* rfh = 61 content::RenderFrameHost* rfh =
62 content::RenderFrameHost::FromID(render_process_id, render_frame_id); 62 content::RenderFrameHost::FromID(render_process_id, render_frame_id);
63 content::WebContents* web_contents = 63 content::WebContents* web_contents =
64 content::WebContents::FromRenderFrameHost(rfh); 64 content::WebContents::FromRenderFrameHost(rfh);
65 return UserData::GetContents(web_contents); 65 return UserData::GetContents(web_contents);
66 } 66 }
67 67
68 AwContentsClientBridgeBase::~AwContentsClientBridgeBase() { 68 AwContentsClientBridgeBase::~AwContentsClientBridgeBase() {
69 } 69 }
70 70
71 } // namespace android_webview 71 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.cc ('k') | android_webview/browser/aw_form_database_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698