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

Unified Diff: extensions/browser/extension_function.cc

Issue 145463002: Extensions: Send the tab id to platform apps. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix null pointer deref Created 6 years, 10 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 | « extensions/browser/extension_function.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_function.cc
===================================================================
--- extensions/browser/extension_function.cc (revision 248111)
+++ extensions/browser/extension_function.cc (working copy)
@@ -37,7 +37,7 @@
public:
explicit RenderHostTracker(UIThreadExtensionFunction* function)
: content::WebContentsObserver(
- function->render_view_host() ?
+ function->render_view_host() ?
WebContents::FromRenderViewHost(function->render_view_host()) :
WebContents::FromRenderFrameHost(
function->render_frame_host())),
@@ -77,7 +77,9 @@
include_incognito_(false),
user_gesture_(false),
bad_message_(false),
- histogram_value_(extensions::functions::UNKNOWN) {}
+ histogram_value_(extensions::functions::UNKNOWN),
+ source_tab_id_(-1) {
+}
ExtensionFunction::~ExtensionFunction() {
}
@@ -157,8 +159,11 @@
}
UIThreadExtensionFunction::UIThreadExtensionFunction()
- : render_view_host_(NULL), render_frame_host_(NULL), context_(NULL),
- delegate_(NULL) {}
+ : render_view_host_(NULL),
+ render_frame_host_(NULL),
+ context_(NULL),
+ delegate_(NULL) {
+}
UIThreadExtensionFunction::~UIThreadExtensionFunction() {
if (dispatcher() && render_view_host())
« no previous file with comments | « extensions/browser/extension_function.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698