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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 696583002: [Smart Lock] Add a setting to require close proximity in order for unlocking to work. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix more indentation Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/signin/easy_unlock_service.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index 983fc3f5b0633640ce98452c65ea52819795c9ab..42fd59e5d4fab53d5339cd462f263fbd6de9bcd1 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -70,6 +70,7 @@
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/locale_settings.h"
#include "chromeos/chromeos_switches.h"
+#include "components/proximity_auth/switches.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_service.h"
#include "components/signin/core/browser/signin_manager.h"
@@ -252,6 +253,9 @@ void BrowserOptionsHandler::GetLocalizedValues(base::DictionaryValue* values) {
{ "metricsReportingResetRestart", IDS_OPTIONS_ENABLE_LOGGING_RESTART },
{ "easyUnlockDescription", IDS_OPTIONS_EASY_UNLOCK_DESCRIPTION,
device_type_resource_id },
+ { "easyUnlockRequireProximityLabel",
+ IDS_OPTIONS_EASY_UNLOCK_REQUIRE_PROXIMITY_LABEL,
+ device_type_resource_id },
{ "easyUnlockSectionTitle", IDS_OPTIONS_EASY_UNLOCK_SECTION_TITLE },
{ "easyUnlockSetupButton", IDS_OPTIONS_EASY_UNLOCK_SETUP_BUTTON },
{ "easyUnlockSetupIntro", IDS_OPTIONS_EASY_UNLOCK_SETUP_INTRO,
@@ -623,6 +627,10 @@ void BrowserOptionsHandler::GetLocalizedValues(base::DictionaryValue* values) {
"easyUnlockAllowed",
EasyUnlockService::Get(Profile::FromWebUI(web_ui()))->IsAllowed());
values->SetString("easyUnlockLearnMoreURL", chrome::kEasyUnlockLearnMoreUrl);
+ values->SetBoolean(
+ "easyUnlockProximityDetectionAllowed",
+ CommandLine::ForCurrentProcess()->HasSwitch(
+ proximity_auth::switches::kEnableProximityDetection));
#if defined(OS_CHROMEOS)
values->SetBoolean(
« no previous file with comments | « chrome/browser/signin/easy_unlock_service.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698