| 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
|
|
|