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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage;
7
8 /**
9 * GeolocationOptions class
vadimt 2013/06/07 17:16:28 Need '.' too.
robliao 2013/06/07 18:35:39 Adding a '.' would not match the style for the oth
10 * Handles initialization of the geolocation options.
11 * @constructor
12 * @class
13 */
14 function GeolocationOptions() {
15 OptionsPage.call(this,
16 'geolocationOptions',
17 loadTimeData.getString('geolocationOptionsPageTabTitle'),
18 'geolocationCheckbox');
19 };
20
21 cr.addSingletonGetter(GeolocationOptions);
22
23 GeolocationOptions.prototype = {
24 __proto__: OptionsPage.prototype
25 };
26
27 GeolocationOptions.showGeolocationOption = function() {
28 var geolocationCheckboxContainer = $('geolocationCheckbox');
29 if (geolocationCheckboxContainer) {
30 geolocationCheckboxContainer.hidden = false;
31 }
32 };
33
34 return {
35 GeolocationOptions: GeolocationOptions
36 };
37 });
OLDNEW
« 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