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

Unified Diff: sky/engine/v8_inspector/read_from_source_tree.cc

Issue 922053002: Remove unused V8 integration code in Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « sky/engine/v8_inspector/read_from_source_tree.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/v8_inspector/read_from_source_tree.cc
diff --git a/sky/engine/v8_inspector/read_from_source_tree.cc b/sky/engine/v8_inspector/read_from_source_tree.cc
deleted file mode 100644
index 951b6ca58f9c369899a0ae0726e6f4908b4e0129..0000000000000000000000000000000000000000
--- a/sky/engine/v8_inspector/read_from_source_tree.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/files/file_path.h"
-#include "base/files/file_util.h"
-#include "base/path_service.h"
-#include "sky/engine/config.h"
-#include "sky/engine/v8_inspector/read_from_source_tree.h"
-
-namespace inspector {
-
-// TODO(eseidel): This is a horrible hack and only works when run
-// inside its source tree! crbug.com/434513
-void ReadFileFromSourceTree(const char* name, std::string* buffer) {
- CHECK(buffer);
- base::FilePath root_dir;
- PathService::Get(base::DIR_SOURCE_ROOT, &root_dir);
- base::FilePath path = root_dir.AppendASCII("sky");
- path = path.AppendASCII("engine").AppendASCII("v8_inspector");
-
- if (std::string("InjectedScriptSource.js") == name)
- path = path.AppendASCII(name);
- else if (std::string("DebuggerScript.js") == name)
- path = path.AppendASCII(name);
- else
- CHECK(false);
-
- base::ReadFileToString(path, buffer);
- CHECK(!buffer->empty());
-}
-
-} // namespace inspector
« no previous file with comments | « sky/engine/v8_inspector/read_from_source_tree.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698