OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/password_manager/sync/browser/sync_credentials_filter.h" | 5 #include "components/password_manager/sync/browser/sync_credentials_filter.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" |
10 #include "base/metrics/field_trial.h" | 11 #include "base/metrics/field_trial.h" |
11 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
12 #include "base/metrics/user_metrics.h" | 13 #include "base/metrics/user_metrics.h" |
13 #include "components/password_manager/core/common/password_manager_switches.h" | 14 #include "components/password_manager/core/common/password_manager_switches.h" |
14 #include "components/password_manager/sync/browser/password_sync_util.h" | 15 #include "components/password_manager/sync/browser/password_sync_util.h" |
15 #include "google_apis/gaia/gaia_urls.h" | 16 #include "google_apis/gaia/gaia_urls.h" |
16 #include "net/base/url_util.h" | 17 #include "net/base/url_util.h" |
17 | 18 |
18 using autofill::PasswordForm; | 19 using autofill::PasswordForm; |
19 | 20 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 if (group_name == "DisallowSyncCredentialsForReauth") | 107 if (group_name == "DisallowSyncCredentialsForReauth") |
107 return DISALLOW_SYNC_CREDENTIALS_FOR_REAUTH; | 108 return DISALLOW_SYNC_CREDENTIALS_FOR_REAUTH; |
108 if (group_name == "DisallowSyncCredentials") | 109 if (group_name == "DisallowSyncCredentials") |
109 return DISALLOW_SYNC_CREDENTIALS; | 110 return DISALLOW_SYNC_CREDENTIALS; |
110 | 111 |
111 // Allow by default. | 112 // Allow by default. |
112 return ALLOW_SYNC_CREDENTIALS; | 113 return ALLOW_SYNC_CREDENTIALS; |
113 } | 114 } |
114 | 115 |
115 } // namespace password_manager | 116 } // namespace password_manager |
OLD | NEW |