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

Unified Diff: chrome/renderer/extensions/chrome_v8_context_set.cc

Issue 98543004: Remove usage of deprecated V8 APIs from c/r/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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 | « chrome/renderer/extensions/chrome_v8_context.cc ('k') | chrome/renderer/extensions/console.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/chrome_v8_context_set.cc
diff --git a/chrome/renderer/extensions/chrome_v8_context_set.cc b/chrome/renderer/extensions/chrome_v8_context_set.cc
index 40b6fe1db9c25c318095cbf308a14cb3dee3fb71..391f3ad49d44e34c37c5fa65ede03a1f92f601b2 100644
--- a/chrome/renderer/extensions/chrome_v8_context_set.cc
+++ b/chrome/renderer/extensions/chrome_v8_context_set.cc
@@ -60,12 +60,14 @@ ChromeV8ContextSet::ContextSet ChromeV8ContextSet::GetAll() const {
}
ChromeV8Context* ChromeV8ContextSet::GetCurrent() const {
- return v8::Context::InContext() ?
- GetByV8Context(v8::Context::GetCurrent()) : NULL;
+ v8::Isolate* isolate = v8::Isolate::GetCurrent();
+ return isolate->InContext() ? GetByV8Context(isolate->GetCurrentContext())
+ : NULL;
}
ChromeV8Context* ChromeV8ContextSet::GetCalling() const {
- v8::Local<v8::Context> calling = v8::Context::GetCalling();
+ v8::Isolate* isolate = v8::Isolate::GetCurrent();
+ v8::Local<v8::Context> calling = isolate->GetCallingContext();
return calling.IsEmpty() ? NULL : GetByV8Context(calling);
}
« no previous file with comments | « chrome/renderer/extensions/chrome_v8_context.cc ('k') | chrome/renderer/extensions/console.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698