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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 139603002: <webview>: Speculative crash fix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adddressed comment Created 6 years, 11 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
Index: content/browser/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index 03f7b1891730043302363195e6cc1192af57b167..e6b8d676354d66f2078dc17b2863e776edfbb094 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -340,7 +340,6 @@ BrowserPluginGuest::BrowserPluginGuest(
WebContentsImpl* web_contents,
BrowserPluginGuest* opener)
: WebContentsObserver(web_contents),
- weak_ptr_factory_(this),
embedder_web_contents_(NULL),
instance_id_(instance_id),
damage_buffer_sequence_id_(0),
@@ -357,7 +356,8 @@ BrowserPluginGuest::BrowserPluginGuest(
next_permission_request_id_(browser_plugin::kInvalidPermissionRequestID),
has_render_view_(has_render_view),
last_seen_auto_size_enabled_(false),
- is_in_destruction_(false) {
+ is_in_destruction_(false),
+ weak_ptr_factory_(this) {
DCHECK(web_contents);
web_contents->SetDelegate(this);
if (opener)
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698