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

Side by Side Diff: components/data_reduction_proxy/core/browser/data_store_impl.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 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 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 4
5 #include "components/data_reduction_proxy/core/browser/data_store_impl.h" 5 #include "components/data_reduction_proxy/core/browser/data_store_impl.h"
6 6
7 #include <stdint.h>
8
7 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
8 #include "base/logging.h" 10 #include "base/logging.h"
9 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
10 #include "base/metrics/histogram_macros.h" 12 #include "base/metrics/histogram_macros.h"
11 #include "components/data_reduction_proxy/proto/data_store.pb.h" 13 #include "components/data_reduction_proxy/proto/data_store.pb.h"
12 #include "third_party/leveldatabase/env_chromium.h" 14 #include "third_party/leveldatabase/env_chromium.h"
13 #include "third_party/leveldatabase/src/include/leveldb/db.h" 15 #include "third_party/leveldatabase/src/include/leveldb/db.h"
14 #include "third_party/leveldatabase/src/include/leveldb/env.h" 16 #include "third_party/leveldatabase/src/include/leveldb/env.h"
15 #include "third_party/leveldatabase/src/include/leveldb/options.h" 17 #include "third_party/leveldatabase/src/include/leveldb/options.h"
16 #include "third_party/leveldatabase/src/include/leveldb/status.h" 18 #include "third_party/leveldatabase/src/include/leveldb/status.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 DCHECK(sequence_checker_.CalledOnValidSequencedThread()); 148 DCHECK(sequence_checker_.CalledOnValidSequencedThread());
147 149
148 LOG(WARNING) << "Deleting corrupt Data Reduction Proxy LevelDB"; 150 LOG(WARNING) << "Deleting corrupt Data Reduction Proxy LevelDB";
149 db_.reset(nullptr); 151 db_.reset(nullptr);
150 base::DeleteFile(profile_path_.Append(kDBName), true); 152 base::DeleteFile(profile_path_.Append(kDBName), true);
151 153
152 OpenDB(); 154 OpenDB();
153 } 155 }
154 156
155 } // namespace data_reduction_proxy 157 } // namespace data_reduction_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698