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

Unified Diff: components/password_manager/core/browser/password_store.cc

Issue 2095553002: Make callers of FromUTC(Local)Exploded in components/ use new time API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 6 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: components/password_manager/core/browser/password_store.cc
diff --git a/components/password_manager/core/browser/password_store.cc b/components/password_manager/core/browser/password_store.cc
index 9842dc2b545492c5b6757e01b8018133f34a776f..7b8d0625a2e18dfe618a9b213aab4330948871bf 100644
--- a/components/password_manager/core/browser/password_store.cc
+++ b/components/password_manager/core/browser/password_store.cc
@@ -177,7 +177,14 @@ void PasswordStore::GetLogins(const PasswordForm& form,
form.signon_realm == "https://www.google.com/")) {
static const base::Time::Exploded exploded_cutoff =
{ 2012, 1, 0, 1, 0, 0, 0, 0 }; // 00:00 Jan 1 2012
- ignore_logins_cutoff = base::Time::FromUTCExploded(exploded_cutoff);
+ base::Time out_time;
+ if (base::Time::FromUTCExploded(exploded_cutoff, &out_time)) {
vabr (Chromium) 2016/06/28 14:34:12 This is called for a constant |exploded_cutoff|. I
maksims (do not use this acc) 2016/06/29 05:48:59 Oh, correct. It will never ever fail. I haven't ch
+ ignore_logins_cutoff = out_time;
+ } else {
+ // TODO(maksims) implement error handling.
+ // |out_time| is Time(0) here.
+ NOTIMPLEMENTED();
+ }
}
std::unique_ptr<GetLoginsRequest> request(new GetLoginsRequest(consumer));
request->set_ignore_logins_cutoff(ignore_logins_cutoff);

Powered by Google App Engine
This is Rietveld 408576698