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

Unified Diff: chrome/browser/password_manager/password_manager_util.h

Issue 23140005: Added of new UMA signals in order to be able to discover early if the "save password" feature gets … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Additional minor changes Created 7 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/password_manager/password_manager_util.h
diff --git a/chrome/browser/password_manager/password_manager_util.h b/chrome/browser/password_manager/password_manager_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..983194a9c84db0dcd203d0622c427c3bb656ab44
--- /dev/null
+++ b/chrome/browser/password_manager/password_manager_util.h
@@ -0,0 +1,34 @@
+// Copyright 2013 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.
+
+#ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_
+#define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+
+namespace PasswordManagerUtil {
Garrett Casto 2013/08/28 01:09:17 Namespace are lowercase (http://google-styleguide.
+
+const std::string kMonitoredDomainName[] = {
Garrett Casto 2013/08/28 01:09:17 Use char* instead of std::string (http://google-st
+ "google.com",
+ "yahoo.com",
+ "baidu.com",
+ "wikipedia.org",
+ "linkedin.com",
+ "twitter.com",
+ "live.com",
+ "amazon.com",
+};
+
+const size_t kMonitoredDomainNameLength = arraysize(kMonitoredDomainName);
+
+// Check wether the |url_host| is monitored or not. If yes, we put the
Garrett Casto 2013/08/28 01:09:17 "whether"
+// domain name into |domain_name|
+bool IsDomainNameMonitored(const std::string& url_host,
Garrett Casto 2013/08/28 01:09:17 Should probably have some basic unit testing for t
+ std::string& domain_name);
Garrett Casto 2013/08/28 01:09:17 It is very rare for functions in Chrome to use a r
+
+} // namespace PasswordManagerUtil
+
+#endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698