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

Unified Diff: trunk/src/chrome/renderer/extensions/chrome_v8_context.h

Issue 23724028: Revert 222102 "Remove unsafe access hacks from ScopedPersistent." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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: trunk/src/chrome/renderer/extensions/chrome_v8_context.h
===================================================================
--- trunk/src/chrome/renderer/extensions/chrome_v8_context.h (revision 222150)
+++ trunk/src/chrome/renderer/extensions/chrome_v8_context.h (working copy)
@@ -43,11 +43,11 @@
// Returns true if this context is still valid, false if it isn't.
// A context becomes invalid via Invalidate().
bool is_valid() const {
- return !v8_context_.IsEmpty();
+ return !v8_context_.get().IsEmpty();
}
v8::Handle<v8::Context> v8_context() const {
- return v8_context_.NewHandle(v8::Isolate::GetCurrent());
+ return v8_context_.get();
}
const Extension* extension() const {

Powered by Google App Engine
This is Rietveld 408576698