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

Unified Diff: gin/per_context_data.cc

Issue 179803007: Refactors parts of gin: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gin_shell 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 | « gin/modules/timer_unittest.cc ('k') | gin/public/context_holder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/per_context_data.cc
diff --git a/gin/per_context_data.cc b/gin/per_context_data.cc
index 5183d00102b26ac080fdcb9ac2f0e70657f1db81..5fedf52a522fb52499b19ed08118cc86d951f393 100644
--- a/gin/per_context_data.cc
+++ b/gin/per_context_data.cc
@@ -40,6 +40,7 @@ void PerContextData::Detach(v8::Handle<v8::Context> context) {
}
}
+// static
PerContextData* PerContextData::From(v8::Handle<v8::Context> context) {
return static_cast<PerContextData*>(
context->GetAlignedPointerFromEmbedderData(kEncodedValueIndex));
« no previous file with comments | « gin/modules/timer_unittest.cc ('k') | gin/public/context_holder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698