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

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

Issue 1141413002: Prepare password_bubble_experiment and password_manager_util for componentisation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android 2 Created 5 years, 7 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 (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/browser_options_handler.h" 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 IDS_SHORT_PRODUCT_NAME }, 303 IDS_SHORT_PRODUCT_NAME },
304 { "linkDoctorPref", IDS_OPTIONS_LINKDOCTOR_PREF }, 304 { "linkDoctorPref", IDS_OPTIONS_LINKDOCTOR_PREF },
305 { "manageAutofillSettings", IDS_OPTIONS_MANAGE_AUTOFILL_SETTINGS_LINK }, 305 { "manageAutofillSettings", IDS_OPTIONS_MANAGE_AUTOFILL_SETTINGS_LINK },
306 { "manageLanguages", IDS_OPTIONS_TRANSLATE_MANAGE_LANGUAGES }, 306 { "manageLanguages", IDS_OPTIONS_TRANSLATE_MANAGE_LANGUAGES },
307 { "managePasswords", IDS_OPTIONS_PASSWORDS_MANAGE_PASSWORDS_LINK }, 307 { "managePasswords", IDS_OPTIONS_PASSWORDS_MANAGE_PASSWORDS_LINK },
308 { "metricsReportingResetRestart", IDS_OPTIONS_ENABLE_LOGGING_RESTART }, 308 { "metricsReportingResetRestart", IDS_OPTIONS_ENABLE_LOGGING_RESTART },
309 { "networkPredictionEnabledDescription", 309 { "networkPredictionEnabledDescription",
310 IDS_NETWORK_PREDICTION_ENABLED_DESCRIPTION }, 310 IDS_NETWORK_PREDICTION_ENABLED_DESCRIPTION },
311 { "passwordManagerEnabled", 311 { "passwordManagerEnabled",
312 password_bubble_experiment::IsSmartLockBrandingEnabled( 312 password_bubble_experiment::IsSmartLockBrandingEnabled(
313 Profile::FromWebUI(web_ui())) ? 313 ProfileSyncServiceFactory::GetForProfile(
314 Profile::FromWebUI(web_ui()))) ?
314 IDS_OPTIONS_PASSWORD_MANAGER_SMART_LOCK_ENABLE : 315 IDS_OPTIONS_PASSWORD_MANAGER_SMART_LOCK_ENABLE :
315 IDS_OPTIONS_PASSWORD_MANAGER_ENABLE }, 316 IDS_OPTIONS_PASSWORD_MANAGER_ENABLE },
316 { "passwordsAndAutofillGroupName", 317 { "passwordsAndAutofillGroupName",
317 IDS_OPTIONS_PASSWORDS_AND_FORMS_GROUP_NAME }, 318 IDS_OPTIONS_PASSWORDS_AND_FORMS_GROUP_NAME },
318 { "privacyClearDataButton", IDS_OPTIONS_PRIVACY_CLEAR_DATA_BUTTON }, 319 { "privacyClearDataButton", IDS_OPTIONS_PRIVACY_CLEAR_DATA_BUTTON },
319 { "privacyContentSettingsButton", 320 { "privacyContentSettingsButton",
320 IDS_OPTIONS_PRIVACY_CONTENT_SETTINGS_BUTTON }, 321 IDS_OPTIONS_PRIVACY_CONTENT_SETTINGS_BUTTON },
321 { "profileAddPersonEnable", IDS_PROFILE_ADD_PERSON_ENABLE }, 322 { "profileAddPersonEnable", IDS_PROFILE_ADD_PERSON_ENABLE },
322 { "profileBrowserGuestEnable", IDS_PROFILE_BROWSER_GUEST_ENABLE }, 323 { "profileBrowserGuestEnable", IDS_PROFILE_BROWSER_GUEST_ENABLE },
323 { "profilesCreate", IDS_PROFILES_CREATE_BUTTON_LABEL }, 324 { "profilesCreate", IDS_PROFILES_CREATE_BUTTON_LABEL },
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 void BrowserOptionsHandler::OnPolicyUpdated(const policy::PolicyNamespace& ns, 2173 void BrowserOptionsHandler::OnPolicyUpdated(const policy::PolicyNamespace& ns,
2173 const policy::PolicyMap& previous, 2174 const policy::PolicyMap& previous,
2174 const policy::PolicyMap& current) { 2175 const policy::PolicyMap& current) {
2175 std::set<std::string> different_keys; 2176 std::set<std::string> different_keys;
2176 current.GetDifferingKeys(previous, &different_keys); 2177 current.GetDifferingKeys(previous, &different_keys);
2177 if (ContainsKey(different_keys, policy::key::kMetricsReportingEnabled)) 2178 if (ContainsKey(different_keys, policy::key::kMetricsReportingEnabled))
2178 SetupMetricsReportingCheckbox(); 2179 SetupMetricsReportingCheckbox();
2179 } 2180 }
2180 2181
2181 } // namespace options 2182 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/passwords/password_bubble_experiment.cc ('k') | chrome/browser/ui/webui/options/password_manager_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698