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

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
« no previous file with comments | « chrome/browser/resources/options/content_settings.html ('k') | chrome/browser/resources/options/options.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,34 @@
+// 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() {
+ $('geolocationCheckbox').hidden = false;
+ };
+
+ return {
+ GeolocationOptions: GeolocationOptions
+ };
+});
« no previous file with comments | « chrome/browser/resources/options/content_settings.html ('k') | chrome/browser/resources/options/options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698