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

Side by Side Diff: chromecast/crash/linux/dump_info.cc

Issue 2569913003: [base::Time] Follow-up cl: Remove deprecated FromLocalExploded FromUTCExploded (Closed)
Patch Set: fix chromecast Created 4 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
« no previous file with comments | « base/time/time.cc ('k') | chromecast/crash/linux/dump_info_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "chromecast/crash/linux/dump_info.h" 4 #include "chromecast/crash/linux/dump_info.h"
5 5
6 #include <errno.h> 6 #include <errno.h>
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 142
143 bool DumpInfo::SetDumpTimeFromString(const std::string& timestr) { 143 bool DumpInfo::SetDumpTimeFromString(const std::string& timestr) {
144 base::Time::Exploded ex = {0}; 144 base::Time::Exploded ex = {0};
145 if (sscanf(timestr.c_str(), kDumpTimeFormat, &ex.year, &ex.month, 145 if (sscanf(timestr.c_str(), kDumpTimeFormat, &ex.year, &ex.month,
146 &ex.day_of_month, &ex.hour, &ex.minute, &ex.second) < 6) { 146 &ex.day_of_month, &ex.hour, &ex.minute, &ex.second) < 6) {
147 LOG(INFO) << "Failed to convert dump time invalid"; 147 LOG(INFO) << "Failed to convert dump time invalid";
148 return false; 148 return false;
149 } 149 }
150 150
151 dump_time_ = base::Time::FromLocalExploded(ex); 151 return base::Time::FromLocalExploded(ex, &dump_);
halliwell 2016/12/13 15:11:30 should be dump_time_
maksims (do not use this acc) 2016/12/13 16:56:36 Done.
152 return true;
153 } 152 }
154 153
155 } // namespace chromecast 154 } // namespace chromecast
OLDNEW
« no previous file with comments | « base/time/time.cc ('k') | chromecast/crash/linux/dump_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698