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

Unified Diff: remoting/host/plugin/host_plugin_utils.cc

Issue 7792011: Run LocalizeStrings() on plugin thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix various nits. Created 9 years, 4 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: remoting/host/plugin/host_plugin_utils.cc
diff --git a/remoting/host/plugin/host_plugin_utils.cc b/remoting/host/plugin/host_plugin_utils.cc
index 1c09327d9bfdb6c7b2308000514e9e3d0f677ec5..c1682c4b8f1425986dfbf00ab07a5926927f8c0e 100644
--- a/remoting/host/plugin/host_plugin_utils.cc
+++ b/remoting/host/plugin/host_plugin_utils.cc
@@ -42,6 +42,11 @@ NPObject* ObjectFromNPVariant(const NPVariant& variant) {
ScopedRefNPObject::ScopedRefNPObject() : object_(NULL) { }
+ScopedRefNPObject::ScopedRefNPObject(NPObject* object)
+ : object_(NULL) {
+ *this = object;
+}
+
ScopedRefNPObject::~ScopedRefNPObject() {
*this = NULL;
}

Powered by Google App Engine
This is Rietveld 408576698