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

Side by Side Diff: ui/base/resource/data_pack.cc

Issue 2293583002: Change includes of histogram.h to histogram_macros.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « storage/browser/quota/quota_manager.cc ('k') | ui/base/resource/resource_bundle.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/base/resource/data_pack.h" 5 #include "ui/base/resource/data_pack.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/files/memory_mapped_file.h" 11 #include "base/files/memory_mapped_file.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/ref_counted_memory.h" 13 #include "base/memory/ref_counted_memory.h"
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram_macros.h"
15 #include "base/strings/string_piece.h" 15 #include "base/strings/string_piece.h"
16 16
17 // For details of the file layout, see 17 // For details of the file layout, see
18 // http://dev.chromium.org/developers/design-documents/linuxresourcesandlocalize dstrings 18 // http://dev.chromium.org/developers/design-documents/linuxresourcesandlocalize dstrings
19 19
20 namespace { 20 namespace {
21 21
22 static const uint32_t kFileFormatVersion = 4; 22 static const uint32_t kFileFormatVersion = 4;
23 // Length of file header: version, entry count and text encoding type. 23 // Length of file header: version, entry count and text encoding type.
24 static const size_t kHeaderLength = 2 * sizeof(uint32_t) + sizeof(uint8_t); 24 static const size_t kHeaderLength = 2 * sizeof(uint32_t) + sizeof(uint8_t);
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 return false; 336 return false;
337 } 337 }
338 } 338 }
339 339
340 base::CloseFile(file); 340 base::CloseFile(file);
341 341
342 return true; 342 return true;
343 } 343 }
344 344
345 } // namespace ui 345 } // namespace ui
OLDNEW
« no previous file with comments | « storage/browser/quota/quota_manager.cc ('k') | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698