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

Side by Side 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, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11
12 namespace PasswordManagerUtil {
Garrett Casto 2013/08/28 01:09:17 Namespace are lowercase (http://google-styleguide.
13
14 const std::string kMonitoredDomainName[] = {
Garrett Casto 2013/08/28 01:09:17 Use char* instead of std::string (http://google-st
15 "google.com",
16 "yahoo.com",
17 "baidu.com",
18 "wikipedia.org",
19 "linkedin.com",
20 "twitter.com",
21 "live.com",
22 "amazon.com",
23 };
24
25 const size_t kMonitoredDomainNameLength = arraysize(kMonitoredDomainName);
26
27 // Check wether the |url_host| is monitored or not. If yes, we put the
Garrett Casto 2013/08/28 01:09:17 "whether"
28 // domain name into |domain_name|
29 bool IsDomainNameMonitored(const std::string& url_host,
Garrett Casto 2013/08/28 01:09:17 Should probably have some basic unit testing for t
30 std::string& domain_name);
Garrett Casto 2013/08/28 01:09:17 It is very rare for functions in Chrome to use a r
31
32 } // namespace PasswordManagerUtil
33
34 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698