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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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/safe_browsing/incident_reporting/download_metadata_mana ger.h" 5 #include "chrome/browser/safe_browsing/incident_reporting/download_metadata_mana ger.h"
6 6
7 #include <stdint.h>
8
7 #include <list> 9 #include <list>
8 10
9 #include "base/bind.h" 11 #include "base/bind.h"
10 #include "base/callback.h" 12 #include "base/callback.h"
11 #include "base/files/file.h" 13 #include "base/files/file.h"
12 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
13 #include "base/files/important_file_writer.h" 15 #include "base/files/important_file_writer.h"
14 #include "base/location.h" 16 #include "base/location.h"
15 #include "base/macros.h" 17 #include "base/macros.h"
16 #include "base/metrics/histogram.h" 18 #include "base/metrics/histogram.h"
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 } 654 }
653 655
654 void DownloadMetadataManager::ManagerContext::UpdateLastOpenedTime( 656 void DownloadMetadataManager::ManagerContext::UpdateLastOpenedTime(
655 const base::Time& last_opened_time) { 657 const base::Time& last_opened_time) {
656 download_metadata_->mutable_download()->set_open_time_msec( 658 download_metadata_->mutable_download()->set_open_time_msec(
657 last_opened_time.ToJavaTime()); 659 last_opened_time.ToJavaTime());
658 WriteMetadata(); 660 WriteMetadata();
659 } 661 }
660 662
661 } // namespace safe_browsing 663 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698