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

Unified Diff: android_webview/browser/browser_view_renderer_impl.cc

Issue 12668003: Fix for crash in testWindows test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/browser_view_renderer_impl.cc
diff --git a/android_webview/browser/browser_view_renderer_impl.cc b/android_webview/browser/browser_view_renderer_impl.cc
index ef1f9d189e24e90545a8e54f00b0ecb25fe7c868..daa48b517d0abd8931f69ac9a50056b607046c53 100644
--- a/android_webview/browser/browser_view_renderer_impl.cc
+++ b/android_webview/browser/browser_view_renderer_impl.cc
@@ -158,15 +158,7 @@ void BrowserViewRendererImpl::SetAwDrawSWFunctionTable(
}
void BrowserViewRendererImpl::SetContents(ContentViewCore* content_view_core) {
- if (web_contents_) {
- ContentViewCore* previous_content_view_core =
- ContentViewCore::FromWebContents(web_contents_);
- if (previous_content_view_core) {
- previous_content_view_core->RemoveFrameInfoCallback(
- update_frame_info_callback_);
- }
- }
-
+ // TODO(joth): Allowing a NULL param is probably not needed, see b/8341990
Leandro GraciĆ” Gil 2013/03/08 11:46:56 The destructor is calling with a NULL param to rel
web_contents_ = content_view_core ?
content_view_core->GetWebContents() : NULL;
view_renderer_host_->Observe(web_contents_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698