Index: content/renderer/pepper/pepper_try_catch.cc |
diff --git a/content/renderer/pepper/pepper_try_catch.cc b/content/renderer/pepper/pepper_try_catch.cc |
index 0d1aacc97a884a86222b632deebf0bb0ad620c3b..736afb31d233852459b455fdcb70d18c859c875f 100644 |
--- a/content/renderer/pepper/pepper_try_catch.cc |
+++ b/content/renderer/pepper/pepper_try_catch.cc |
@@ -70,8 +70,11 @@ PepperTryCatchV8::PepperTryCatchV8( |
// Typically when using PepperTryCatchV8 we are passed an isolate. We verify |
// that this isolate is the same as the plugin isolate. |
DCHECK(isolate == instance_->GetIsolate()); |
- // We assume we are already in the plugin context for PepperTryCatchV8. |
- DCHECK(GetContext() == isolate->GetCurrentContext()); |
+ |
+ // We assume that a handle scope and context has been setup by the user of |
+ // this class. This is typically true because this class is used when calling |
+ // into the plugin from JavaScript. We want to use whatever v8 context the |
+ // caller is in. |
} |
PepperTryCatchV8::~PepperTryCatchV8() { |