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

Side by Side Diff: chrome/browser/ui/webui/options/geolocation_options_handler.cc

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 #include "chrome/browser/ui/webui/options/geolocation_options_handler.h"
6
7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h"
9 #include "chrome/common/chrome_switches.h"
10 #include "content/public/browser/web_ui.h"
11
12 namespace options {
13
14 GeolocationOptionsHandler::GeolocationOptionsHandler() {
15 }
16
17 GeolocationOptionsHandler::~GeolocationOptionsHandler() {
18 }
19
20 void GeolocationOptionsHandler::GetLocalizedValues(
21 DictionaryValue* localized_strings) {
22 }
23
24 void GeolocationOptionsHandler::InitializePage() {
25 #if defined(ENABLE_GOOGLE_NOW)
vadimt 2013/06/07 00:56:07 Creation of this object is already under "#if defi
robliao 2013/06/07 07:34:36 Done.
26 DCHECK(web_ui());
27
28 if ((base::FieldTrialList::FindFullName("GoogleNow") == "Enable") ||
29 CommandLine::ForCurrentProcess()->HasSwitch(
30 switches::kEnableGoogleNowIntegration)) {
31 web_ui()->CallJavascriptFunction(
32 "GeolocationOptions.showGeolocationOption");
33 }
34 #endif
35 }
36
37 }
38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698