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

Unified Diff: trunk/src/chrome/renderer/extensions/webview_custom_bindings.cc

Issue 23965004: Revert 222090 "<webview>: Cleanup WebRequest event listeners whe..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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: trunk/src/chrome/renderer/extensions/webview_custom_bindings.cc
===================================================================
--- trunk/src/chrome/renderer/extensions/webview_custom_bindings.cc (revision 222122)
+++ trunk/src/chrome/renderer/extensions/webview_custom_bindings.cc (working copy)
@@ -1,28 +0,0 @@
-// Copyright 2013 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 "chrome/renderer/extensions/webview_custom_bindings.h"
-
-#include <string>
-
-#include "base/bind.h"
-#include "v8/include/v8.h"
-
-namespace extensions {
-
-WebViewCustomBindings::WebViewCustomBindings(
- Dispatcher* dispatcher, ChromeV8Context* context)
- : ChromeV8Extension(dispatcher, context) {
- RouteFunction("GetNextInstanceID",
- base::Bind(&WebViewCustomBindings::GetNextInstanceID,
- base::Unretained(this)));
-}
-
-void WebViewCustomBindings::GetNextInstanceID(
- const v8::FunctionCallbackInfo<v8::Value>& args) {
- static int next_instance_id = 1;
- args.GetReturnValue().Set(next_instance_id++);
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698