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

Unified Diff: extensions/renderer/print_native_handler.cc

Issue 1866103002: [Extensions] Expand bindings access checks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 4 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
« no previous file with comments | « extensions/renderer/print_native_handler.h ('k') | extensions/renderer/render_frame_observer_natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/print_native_handler.cc
diff --git a/extensions/renderer/print_native_handler.cc b/extensions/renderer/print_native_handler.cc
deleted file mode 100644
index b6ee63a7e59c2e29014efecda27d8cde6f11cd98..0000000000000000000000000000000000000000
--- a/extensions/renderer/print_native_handler.cc
+++ /dev/null
@@ -1,32 +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 "extensions/renderer/print_native_handler.h"
-
-#include <string>
-
-#include "base/bind.h"
-#include "base/strings/string_util.h"
-
-namespace extensions {
-
-PrintNativeHandler::PrintNativeHandler(ScriptContext* context)
- : ObjectBackedNativeHandler(context) {
- RouteFunction("Print",
- base::Bind(&PrintNativeHandler::Print, base::Unretained(this)));
-}
-
-void PrintNativeHandler::Print(
- const v8::FunctionCallbackInfo<v8::Value>& args) {
- if (args.Length() < 1)
- return;
-
- std::vector<std::string> components;
- for (int i = 0; i < args.Length(); ++i)
- components.push_back(*v8::String::Utf8Value(args[i]));
-
- LOG(ERROR) << base::JoinString(components, ",");
-}
-
-} // namespace extensions
« no previous file with comments | « extensions/renderer/print_native_handler.h ('k') | extensions/renderer/render_frame_observer_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698