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

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

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options/geolocation_options_handler.h" 5 #include "chrome/browser/ui/webui/options/geolocation_options_handler.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 #include "content/public/browser/web_ui.h" 10 #include "content/public/browser/web_ui.h"
(...skipping 13 matching lines...) Expand all
24 24
25 const char kEnablePrefix[] = "Enable"; 25 const char kEnablePrefix[] = "Enable";
26 const char kFieldTrialName[] = "GoogleNow"; 26 const char kFieldTrialName[] = "GoogleNow";
27 std::string enable_prefix(kEnablePrefix); 27 std::string enable_prefix(kEnablePrefix);
28 std::string field_trial_result = 28 std::string field_trial_result =
29 base::FieldTrialList::FindFullName(kFieldTrialName); 29 base::FieldTrialList::FindFullName(kFieldTrialName);
30 if (field_trial_result.compare( 30 if (field_trial_result.compare(
31 0, 31 0,
32 enable_prefix.length(), 32 enable_prefix.length(),
33 enable_prefix) == 0) { 33 enable_prefix) == 0) {
34 web_ui()->CallJavascriptFunction( 34 web_ui()->CallJavascriptFunctionUnsafe(
35 "GeolocationOptions.showGeolocationOption"); 35 "GeolocationOptions.showGeolocationOption");
36 } 36 }
37 } 37 }
38 38
39 } // namespace options 39 } // namespace options
40 40
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/font_settings_handler.cc ('k') | chrome/browser/ui/webui/options/handler_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698