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

Unified Diff: content/shell/renderer/test_runner/test_runner.cc

Issue 232733002: InvokeCallbackTask should use UniquePersistent to hold callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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: content/shell/renderer/test_runner/test_runner.cc
diff --git a/content/shell/renderer/test_runner/test_runner.cc b/content/shell/renderer/test_runner/test_runner.cc
index a16d3115a37a59c6cb365c961762a3b605ff8a98..2d6694cce167ebe9499e4666d5a2db99c3753973 100644
--- a/content/shell/renderer/test_runner/test_runner.cc
+++ b/content/shell/renderer/test_runner/test_runner.cc
@@ -104,7 +104,7 @@ class InvokeCallbackTask : public WebMethodTask<content::TestRunner> {
}
private:
- v8::Persistent<v8::Function> callback_;
+ v8::UniquePersistent<v8::Function> callback_;
};
class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> {
« 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