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 "chrome/browser/ui/passwords/manage_passwords_view_utils.h" | 5 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/sync/profile_sync_service_factory.h" | 13 #include "chrome/browser/sync/profile_sync_service_factory.h" |
14 #include "chrome/grit/chromium_strings.h" | 14 #include "chrome/grit/chromium_strings.h" |
15 #include "chrome/grit/generated_resources.h" | 15 #include "chrome/grit/generated_resources.h" |
16 #include "components/autofill/core/common/password_form.h" | 16 #include "components/autofill/core/common/password_form.h" |
17 #include "components/browser_sync/browser/profile_sync_service.h" | 17 #include "components/browser_sync/browser/profile_sync_service.h" |
18 #include "components/password_manager/core/browser/affiliation_utils.h" | 18 #include "components/password_manager/core/browser/affiliation_utils.h" |
| 19 #include "components/strings/grit/components_strings.h" |
19 #include "components/url_formatter/elide_url.h" | 20 #include "components/url_formatter/elide_url.h" |
20 #include "grit/components_strings.h" | |
21 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 21 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
22 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
23 #include "ui/gfx/geometry/rect.h" | 23 #include "ui/gfx/geometry/rect.h" |
24 #include "ui/gfx/geometry/size.h" | 24 #include "ui/gfx/geometry/size.h" |
25 #include "ui/gfx/image/image_skia.h" | 25 #include "ui/gfx/image/image_skia.h" |
26 #include "ui/gfx/image/image_skia_operations.h" | 26 #include "ui/gfx/image/image_skia_operations.h" |
27 #include "ui/gfx/range/range.h" | 27 #include "ui/gfx/range/range.h" |
28 #include "url/gurl.h" | 28 #include "url/gurl.h" |
29 #include "url/origin.h" | 29 #include "url/origin.h" |
30 | 30 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 : form.username_value; | 182 : form.username_value; |
183 } | 183 } |
184 | 184 |
185 bool IsSyncingAutosignSetting(Profile* profile) { | 185 bool IsSyncingAutosignSetting(Profile* profile) { |
186 const ProfileSyncService* sync_service = | 186 const ProfileSyncService* sync_service = |
187 ProfileSyncServiceFactory::GetForProfile(profile); | 187 ProfileSyncServiceFactory::GetForProfile(profile); |
188 return (sync_service && sync_service->IsFirstSetupComplete() && | 188 return (sync_service && sync_service->IsFirstSetupComplete() && |
189 sync_service->IsSyncActive() && | 189 sync_service->IsSyncActive() && |
190 sync_service->GetActiveDataTypes().Has(syncer::PRIORITY_PREFERENCES)); | 190 sync_service->GetActiveDataTypes().Has(syncer::PRIORITY_PREFERENCES)); |
191 } | 191 } |
OLD | NEW |