Index: chrome/test/base/v8_unit_test.h |
diff --git a/chrome/test/base/v8_unit_test.h b/chrome/test/base/v8_unit_test.h |
index 4b056d3c4d02e7fe320da08a4f01c8a87c2c4d36..b12238f007f549218ede3a4adfb2a85d5e5c5929 100644 |
--- a/chrome/test/base/v8_unit_test.h |
+++ b/chrome/test/base/v8_unit_test.h |
@@ -68,36 +68,12 @@ class V8UnitTest : public testing::Test { |
static void ChromeSend(const v8::FunctionCallbackInfo<v8::Value>& args); |
private: |
- // A helper class to ensure that the lifetimes of the Isolate and the |
- // HandleScope are correctly nested. |
- class IsolateScope { |
- public: |
- IsolateScope() : isolate_(v8::Isolate::New()) { isolate_->Enter(); } |
- |
- ~IsolateScope() { |
- isolate_->Exit(); |
- isolate_->Dispose(); |
- } |
- |
- v8::Isolate* isolate() const { return isolate_; } |
- |
- private: |
- v8::Isolate* isolate_; |
- |
- DISALLOW_COPY_AND_ASSIGN(IsolateScope); |
- }; |
- |
- // A handy shortcut. |
- v8::Isolate* isolate() const { return isolate_scope_.isolate(); } |
- |
// Executes all added javascript libraries. Returns true if no errors. |
bool ExecuteJavascriptLibraries(); |
// Initializes paths and libraries. |
void InitPathsAndLibraries(); |
- IsolateScope isolate_scope_; |
- |
// Handle scope that is used throughout the life of this class. |
v8::HandleScope handle_scope_; |