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

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

Issue 2313103002: Added uma for pin unlock set up. (Closed)
Patch Set: Closure compiler fix. Created 4 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/options_ui.h" 5 #include "chrome/browser/ui/webui/options/options_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 const char kOptionsBundleJsFile[] = "options_bundle.js"; 118 const char kOptionsBundleJsFile[] = "options_bundle.js";
119 119
120 #if defined(OS_CHROMEOS) 120 #if defined(OS_CHROMEOS)
121 constexpr char kIconsHTMLPath[] = "icons.html"; 121 constexpr char kIconsHTMLPath[] = "icons.html";
122 constexpr char kPinKeyboardHTMLPath[] = "people_page/pin_keyboard.html"; 122 constexpr char kPinKeyboardHTMLPath[] = "people_page/pin_keyboard.html";
123 constexpr char kPinKeyboardJSPath[] = "people_page/pin_keyboard.js"; 123 constexpr char kPinKeyboardJSPath[] = "people_page/pin_keyboard.js";
124 constexpr char kPasswordPromptDialogHTMLPath[] = 124 constexpr char kPasswordPromptDialogHTMLPath[] =
125 "people_page/password_prompt_dialog.html"; 125 "people_page/password_prompt_dialog.html";
126 constexpr char kPasswordPromptDialogJSPath[] = 126 constexpr char kPasswordPromptDialogJSPath[] =
127 "people_page/password_prompt_dialog.js"; 127 "people_page/password_prompt_dialog.js";
128 constexpr char kLockScreenConstantsHTMLPath[] =
129 "people_page/lock_screen_constants.html";
130 constexpr char kLockScreenConstantsJSPath[] =
131 "people_page/lock_screen_constants.js";
128 constexpr char kLockStateBehaviorHTMLPath[] = 132 constexpr char kLockStateBehaviorHTMLPath[] =
129 "people_page/lock_state_behavior.html"; 133 "people_page/lock_state_behavior.html";
130 constexpr char kLockStateBehaviorJSPath[] = 134 constexpr char kLockStateBehaviorJSPath[] =
131 "people_page/lock_state_behavior.js"; 135 "people_page/lock_state_behavior.js";
132 constexpr char kLockScreenHTMLPath[] = "people_page/lock_screen.html"; 136 constexpr char kLockScreenHTMLPath[] = "people_page/lock_screen.html";
133 constexpr char kLockScreenJSPath[] = "people_page/lock_screen.js"; 137 constexpr char kLockScreenJSPath[] = "people_page/lock_screen.js";
134 constexpr char kSetupPinHTMLPath[] = "people_page/setup_pin_dialog.html"; 138 constexpr char kSetupPinHTMLPath[] = "people_page/setup_pin_dialog.html";
135 constexpr char kSetupPinJSPath[] = "people_page/setup_pin_dialog.js"; 139 constexpr char kSetupPinJSPath[] = "people_page/setup_pin_dialog.js";
136 constexpr char kSettingsRouteHTMLPath[] = "route.html"; 140 constexpr char kSettingsRouteHTMLPath[] = "route.html";
137 constexpr char kSettingsRouteJSPath[] = "route.js"; 141 constexpr char kSettingsRouteJSPath[] = "route.js";
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 254
251 void OptionsUIHTMLSource::CreateDataSourceMap() { 255 void OptionsUIHTMLSource::CreateDataSourceMap() {
252 #if defined(OS_CHROMEOS) 256 #if defined(OS_CHROMEOS)
253 path_to_idr_map_[kIconsHTMLPath] = IDR_OPTIONS_ICONS_HTML; 257 path_to_idr_map_[kIconsHTMLPath] = IDR_OPTIONS_ICONS_HTML;
254 path_to_idr_map_[kPinKeyboardHTMLPath] = IDR_OPTIONS_PIN_KEYBOARD_HTML; 258 path_to_idr_map_[kPinKeyboardHTMLPath] = IDR_OPTIONS_PIN_KEYBOARD_HTML;
255 path_to_idr_map_[kPinKeyboardJSPath] = IDR_OPTIONS_PIN_KEYBOARD_JS; 259 path_to_idr_map_[kPinKeyboardJSPath] = IDR_OPTIONS_PIN_KEYBOARD_JS;
256 path_to_idr_map_[kPasswordPromptDialogHTMLPath] = 260 path_to_idr_map_[kPasswordPromptDialogHTMLPath] =
257 IDR_OPTIONS_PASSWORD_PROMPT_DIALOG_HTML; 261 IDR_OPTIONS_PASSWORD_PROMPT_DIALOG_HTML;
258 path_to_idr_map_[kPasswordPromptDialogJSPath] = 262 path_to_idr_map_[kPasswordPromptDialogJSPath] =
259 IDR_OPTIONS_PASSWORD_PROMPT_DIALOG_JS; 263 IDR_OPTIONS_PASSWORD_PROMPT_DIALOG_JS;
264 path_to_idr_map_[kLockScreenConstantsHTMLPath] =
265 IDR_OPTIONS_LOCK_SCREEN_CONSTANTS_HTML;
266 path_to_idr_map_[kLockScreenConstantsJSPath] =
267 IDR_OPTIONS_LOCK_SCREEN_CONSTANTS_JS;
260 path_to_idr_map_[kLockStateBehaviorHTMLPath] = 268 path_to_idr_map_[kLockStateBehaviorHTMLPath] =
261 IDR_OPTIONS_LOCK_STATE_BEHAVIOR_HTML; 269 IDR_OPTIONS_LOCK_STATE_BEHAVIOR_HTML;
262 path_to_idr_map_[kLockStateBehaviorJSPath] = 270 path_to_idr_map_[kLockStateBehaviorJSPath] =
263 IDR_OPTIONS_LOCK_STATE_BEHAVIOR_JS; 271 IDR_OPTIONS_LOCK_STATE_BEHAVIOR_JS;
264 path_to_idr_map_[kLockScreenHTMLPath] = IDR_OPTIONS_LOCK_SCREEN_HTML; 272 path_to_idr_map_[kLockScreenHTMLPath] = IDR_OPTIONS_LOCK_SCREEN_HTML;
265 path_to_idr_map_[kLockScreenJSPath] = IDR_OPTIONS_LOCK_SCREEN_JS; 273 path_to_idr_map_[kLockScreenJSPath] = IDR_OPTIONS_LOCK_SCREEN_JS;
266 path_to_idr_map_[kSetupPinHTMLPath] = IDR_OPTIONS_SETUP_PIN_DIALOG_HTML; 274 path_to_idr_map_[kSetupPinHTMLPath] = IDR_OPTIONS_SETUP_PIN_DIALOG_HTML;
267 path_to_idr_map_[kSetupPinJSPath] = IDR_OPTIONS_SETUP_PIN_DIALOG_JS; 275 path_to_idr_map_[kSetupPinJSPath] = IDR_OPTIONS_SETUP_PIN_DIALOG_JS;
268 path_to_idr_map_[kSettingsRouteHTMLPath] = IDR_OPTIONS_ROUTE_HTML; 276 path_to_idr_map_[kSettingsRouteHTMLPath] = IDR_OPTIONS_ROUTE_HTML;
269 path_to_idr_map_[kSettingsRouteJSPath] = IDR_OPTIONS_ROUTE_JS; 277 path_to_idr_map_[kSettingsRouteJSPath] = IDR_OPTIONS_ROUTE_JS;
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 // Add only if handler's service is enabled. 576 // Add only if handler's service is enabled.
569 if (handler->IsEnabled()) { 577 if (handler->IsEnabled()) {
570 // Add handler to the list and also pass the ownership. 578 // Add handler to the list and also pass the ownership.
571 web_ui()->AddMessageHandler(handler.release()); 579 web_ui()->AddMessageHandler(handler.release());
572 handler_raw->GetLocalizedValues(localized_strings); 580 handler_raw->GetLocalizedValues(localized_strings);
573 handlers_.push_back(handler_raw); 581 handlers_.push_back(handler_raw);
574 } 582 }
575 } 583 }
576 584
577 } // namespace options 585 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | chrome/browser/ui/webui/settings/md_settings_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698