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

Unified Diff: chrome/browser/resources/settings/search_engines_page/add_search_engine_dialog.js

Issue 1666623006: MD Settings: Manage search engines 3/3, hooking up UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manage_search_engines_handler
Patch Set: Resolving conflicts with ToT Created 4 years, 10 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: 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();
- },
-});

Powered by Google App Engine
This is Rietveld 408576698