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

Unified Diff: chrome/browser/resources/settings/location_page/location_page.js

Issue 1372053002: Flesh out the location-page class to make it more general. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/location_page/location_page.js
diff --git a/chrome/browser/resources/settings/location_page/location_page.js b/chrome/browser/resources/settings/location_page/location_page.js
deleted file mode 100644
index 368bfa3e2896689f3ade3c4a46c5a0e82f57a7ca..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/settings/location_page/location_page.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// Copyright 2015 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-location-page' is the settings page for location access.
- *
- * Example:
- *
- * <settings-location-page prefs="{{prefs}}">
- * </settings-location-page>
- * ... other pages ...
- *
- * @group Chrome Settings Elements
- * @element settings-location-page
- */
-Polymer({
- is: 'settings-location-page',
-
- properties: {
- /**
- * Preferences state.
- */
- prefs: {
- type: Object,
- notify: true,
- },
-
- /**
- * Route for the page.
- */
- route: String,
-
- /**
- * Whether the page is a subpage.
- */
- subpage: {
- type: Boolean,
- value: true,
- readOnly: true,
- },
-
- /**
- * ID of the page.
- */
- PAGE_ID: {
- type: String,
- value: 'location',
- readOnly: true,
- },
-
- /**
- * Title for the page header and navigation menu.
- */
- pageTitle: {
- type: String,
- value: '',
- },
-
- /**
- * Name of the 'iron-icon' to show.
- */
- icon: {
- type: String,
- value: 'communication:location-on',
- readOnly: true,
- },
-
- /**
- * Array of objects with url members.
- */
- block: {
- type: Array,
- },
-
- /**
- * Array of objects with url members.
- */
- allow: {
- type: Array,
- },
- },
-
- ready: function() {
- this.block = [];
- this.allow = [];
- },
-
- getTitleAndCount_: function(title, count) {
- return loadTimeData.getStringF(
- 'titleAndCount', loadTimeData.getString(title), count);
- },
-});

Powered by Google App Engine
This is Rietveld 408576698