Commit e00e8b8d authored by Ryan Hansberry's avatar Ryan Hansberry Committed by Commit Bot

Smart Lock: Deep link 'Chromebook added' notification to new settings page

R=jhawkins@chromium.org

TBR=jhawkins@chromium.org

Bug: 873310
Change-Id: Ie0e9a8ef43c890666b39e4f188d9ba156295c7e8
Reviewed-on: https://chromium-review.googlesource.com/c/1277866
Commit-Queue: Ryan Hansberry <hansberry@chromium.org>
Reviewed-by: default avatarJeremy Klein <jlklein@chromium.org>
Cr-Commit-Position: refs/heads/master@{#598919}
parent a9c450d1
......@@ -10,6 +10,7 @@
#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/theme_resources.h"
#include "chromeos/chromeos_features.h"
#include "chromeos/components/proximity_auth/screenlock_bridge.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
......@@ -33,6 +34,7 @@ const char kEasyUnlockPromotionNotifierId[] =
"easyunlock_notification_ids.promotion";
const char kLockScreenSettingsSubpage[] = "lockScreen";
const char kSmartLockSettingsSubpage[] = "multidevice/features/smartLock";
// Convenience function for creating a Notification.
std::unique_ptr<message_center::Notification> CreateNotification(
......@@ -154,7 +156,11 @@ void EasyUnlockNotificationController::ShowNotification(
}
void EasyUnlockNotificationController::LaunchEasyUnlockSettings() {
chrome::ShowSettingsSubPageForProfile(profile_, kLockScreenSettingsSubpage);
chrome::ShowSettingsSubPageForProfile(
profile_, base::FeatureList::IsEnabled(
chromeos::features::kEnableUnifiedMultiDeviceSettings)
? kSmartLockSettingsSubpage
: kLockScreenSettingsSubpage);
}
void EasyUnlockNotificationController::LockScreen() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment