OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/password_manager/chrome_password_manager_client.h" | 5 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
6 | 6 |
7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 | 573 |
574 if (group_name == "DisallowSyncCredentialsForReauth") { | 574 if (group_name == "DisallowSyncCredentialsForReauth") { |
575 autofill_sync_state_ = DISALLOW_SYNC_CREDENTIALS_FOR_REAUTH; | 575 autofill_sync_state_ = DISALLOW_SYNC_CREDENTIALS_FOR_REAUTH; |
576 } else if (group_name == "DisallowSyncCredentials") { | 576 } else if (group_name == "DisallowSyncCredentials") { |
577 autofill_sync_state_ = DISALLOW_SYNC_CREDENTIALS; | 577 autofill_sync_state_ = DISALLOW_SYNC_CREDENTIALS; |
578 } else { | 578 } else { |
579 // Allow by default. | 579 // Allow by default. |
580 autofill_sync_state_ = ALLOW_SYNC_CREDENTIALS; | 580 autofill_sync_state_ = ALLOW_SYNC_CREDENTIALS; |
581 } | 581 } |
582 } | 582 } |
| 583 |
| 584 const GURL& ChromePasswordManagerClient::GetMainFrameURL() { |
| 585 return web_contents()->GetVisibleURL(); |
| 586 } |
OLD | NEW |