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

Unified Diff: extensions/renderer/app_window_custom_bindings.cc

Issue 2551303003: Remove unused packaged app window controls code. (Closed)
Patch Set: Nit Created 4 years 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/app_window_custom_bindings.h ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/app_window_custom_bindings.cc
diff --git a/extensions/renderer/app_window_custom_bindings.cc b/extensions/renderer/app_window_custom_bindings.cc
index 6553e5e307155a7d9d48be9c59abdcc522401dae..74932198da215bd97c344d362a9cf81a42c4cd55 100644
--- a/extensions/renderer/app_window_custom_bindings.cc
+++ b/extensions/renderer/app_window_custom_bindings.cc
@@ -24,10 +24,6 @@ AppWindowCustomBindings::AppWindowCustomBindings(ScriptContext* context)
: ObjectBackedNativeHandler(context) {
RouteFunction("GetFrame", base::Bind(&AppWindowCustomBindings::GetFrame,
base::Unretained(this)));
-
- RouteFunction("GetWindowControlsHtmlTemplate",
- base::Bind(&AppWindowCustomBindings::GetWindowControlsHtmlTemplate,
- base::Unretained(this)));
}
void AppWindowCustomBindings::GetFrame(
@@ -61,22 +57,4 @@ void AppWindowCustomBindings::GetFrame(
args.GetReturnValue().Set(window);
}
-void AppWindowCustomBindings::GetWindowControlsHtmlTemplate(
- const v8::FunctionCallbackInfo<v8::Value>& args) {
- CHECK_EQ(args.Length(), 0);
-
- v8::Local<v8::Value> result = v8::String::Empty(args.GetIsolate());
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableAppWindowControls)) {
- base::StringValue value(
- ResourceBundle::GetSharedInstance()
- .GetRawDataResource(IDR_WINDOW_CONTROLS_TEMPLATE_HTML)
- .as_string());
- std::unique_ptr<content::V8ValueConverter> converter(
- content::V8ValueConverter::create());
- result = converter->ToV8Value(&value, context()->v8_context());
- }
- args.GetReturnValue().Set(result);
-}
-
} // namespace extensions
« no previous file with comments | « extensions/renderer/app_window_custom_bindings.h ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698