blob: 0f676108d882aabaac72a88410bd75456f273e26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/passwords/manage_passwords_view_utils_desktop.h"
#include "chrome/grit/chromium_strings.h"
#include "chrome/grit/generated_resources.h"
#include "components/password_manager/core/browser/password_bubble_experiment.h"
#include "components/password_manager/core/browser/password_manager_settings_migration_experiment.h"
int GetPasswordManagerSettingsStringId(
const sync_driver::SyncService* sync_service) {
int smart_lock_users_ids = IDS_OPTIONS_PASSWORD_MANAGER_SMART_LOCK_ENABLE;
int non_smart_lock_users_ids = IDS_OPTIONS_PASSWORD_MANAGER_ENABLE;
if (password_bubble_experiment::IsSmartLockBrandingEnabled(sync_service))
return smart_lock_users_ids;
if (password_bubble_experiment::IsSmartLockUser(sync_service) &&
password_manager::IsSettingsMigrationActive()) {
return smart_lock_users_ids;
}
return non_smart_lock_users_ids;
}
|