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

Unified Diff: extensions/renderer/console.cc

Issue 234413005: Move most of ChromeV8Context to a base ScriptContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
Index: extensions/renderer/console.cc
diff --git a/chrome/renderer/extensions/console.cc b/extensions/renderer/console.cc
similarity index 95%
rename from chrome/renderer/extensions/console.cc
rename to extensions/renderer/console.cc
index 1c3dde37b5efbbfee9e3bbaf7013135a5184d181..b7e8b92e86444d355220d3f0701dedac629fd3be 100644
--- a/chrome/renderer/extensions/console.cc
+++ b/extensions/renderer/console.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/renderer/extensions/console.h"
+#include "extensions/renderer/console.h"
#include "base/compiler_specific.h"
#include "base/debug/alias.h"
@@ -35,8 +35,7 @@ class ByContextFinder : public content::RenderViewVisitor {
private:
explicit ByContextFinder(v8::Handle<v8::Context> context)
- : context_(context), found_(NULL) {
- }
+ : context_(context), found_(NULL) {}
virtual bool Visit(content::RenderView* render_view) OVERRIDE {
ExtensionHelper* helper = ExtensionHelper::Get(render_view);
@@ -57,8 +56,8 @@ class ByContextFinder : public content::RenderViewVisitor {
void CheckWithMinidump(const std::string& message) {
char minidump[1024];
base::debug::Alias(&minidump);
- base::snprintf(minidump, arraysize(minidump),
- "e::console: %s", message.c_str());
+ base::snprintf(
+ minidump, arraysize(minidump), "e::console: %s", message.c_str());
CHECK(false) << message;
}
@@ -66,8 +65,8 @@ typedef void (*LogMethod)(v8::Handle<v8::Context> context,
const std::string& message);
void BoundLogMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
- LogMethod log_method = reinterpret_cast<LogMethod>(
- info.Data().As<v8::External>()->Value());
+ LogMethod log_method =
+ reinterpret_cast<LogMethod>(info.Data().As<v8::External>()->Value());
std::string message;
for (int i = 0; i < info.Length(); ++i) {
if (i > 0)

Powered by Google App Engine
This is Rietveld 408576698