Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chrome/browser/password_manager/chrome_password_manager_client.cc

Issue 794133002: [Password Manager] Add UMA signals to understand how often the password form submit navigate… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698