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

Unified Diff: chrome/browser/resources/options/geolocation_options.js

Issue 15716012: Add a Preference for Google Services to Use the User's Location (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 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/options/geolocation_options.js
===================================================================
--- chrome/browser/resources/options/geolocation_options.js (revision 0)
+++ chrome/browser/resources/options/geolocation_options.js (working copy)
@@ -0,0 +1,37 @@
+// Copyright (c) 2013 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.
+
+cr.define('options', function() {
+ var OptionsPage = options.OptionsPage;
+
+ /**
+ * GeolocationOptions class
+ * Handles initialization of the geolocation options.
+ * @constructor
+ * @class
+ */
+ function GeolocationOptions() {
+ OptionsPage.call(this,
+ 'geolocationOptions',
+ loadTimeData.getString('geolocationOptionsPageTabTitle'),
+ 'geolocationCheckbox');
+ };
+
+ cr.addSingletonGetter(GeolocationOptions);
+
+ GeolocationOptions.prototype = {
+ __proto__: OptionsPage.prototype
+ };
+
+ GeolocationOptions.showGeolocationOption = function() {
+ var geolocationCheckboxContainer = $('geolocationCheckbox');
+ if (geolocationCheckboxContainer) {
+ geolocationCheckboxContainer.hidden = false;
+ }
+ };
+
+ return {
+ GeolocationOptions: GeolocationOptions
+ };
+});

Powered by Google App Engine
This is Rietveld 408576698