| Index: chrome/browser/resources/settings/search_engines_page/add_search_engine_dialog.js
|
| diff --git a/chrome/browser/resources/settings/search_engines_page/add_search_engine_dialog.js b/chrome/browser/resources/settings/search_engines_page/add_search_engine_dialog.js
|
| deleted file mode 100644
|
| index ca161cf19d3bbd43329c004924267e6117158758..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/resources/settings/search_engines_page/add_search_engine_dialog.js
|
| +++ /dev/null
|
| @@ -1,39 +0,0 @@
|
| -// Copyright 2016 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.
|
| -
|
| -/**
|
| - * @fileoverview 'settings-add-search-engine-dialog' is a component for adding a
|
| - * new search engine.
|
| - *
|
| - * @group Chrome Settings Elements
|
| - * @element settings-add-search-engine-dialog
|
| - */
|
| -Polymer({
|
| - is: 'settings-add-search-engine-dialog',
|
| -
|
| - open: function() {
|
| - this.$.dialog.open();
|
| - },
|
| -
|
| - /** @private */
|
| - onCancelTap_: function() {
|
| - this.$.dialog.close();
|
| - },
|
| -
|
| - /** @private */
|
| - onAddTap_: function() {
|
| - if (this.$.searchEngine.isInvalid ||
|
| - this.$.keyword.isInvalid ||
|
| - this.$.queryUrl.isInvalid) {
|
| - // TODO(dpapad): Handle validation properly.
|
| - this.$.dialog.close();
|
| - return;
|
| - }
|
| -
|
| - chrome.searchEnginesPrivate.addOtherSearchEngine(
|
| - this.$.searchEngine.value, this.$.keyword.value,
|
| - this.$.queryUrl.value);
|
| - this.$.dialog.close();
|
| - },
|
| -});
|
|
|