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

Side by Side Diff: components/storage_monitor/mtab_watcher_linux.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 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 // MtabWatcherLinux implementation. 5 // MtabWatcherLinux implementation.
6 6
7 #include "components/storage_monitor/mtab_watcher_linux.h" 7 #include "components/storage_monitor/mtab_watcher_linux.h"
8 8
9 #include <mntent.h> 9 #include <mntent.h>
10 #include <stddef.h>
10 #include <stdio.h> 11 #include <stdio.h>
11 12
12 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/macros.h"
13 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
14 16
15 namespace { 17 namespace {
16 18
17 // List of file systems we care about. 19 // List of file systems we care about.
18 const char* const kKnownFileSystems[] = { 20 const char* const kKnownFileSystems[] = {
19 "btrfs", 21 "btrfs",
20 "ext2", 22 "ext2",
21 "ext3", 23 "ext3",
22 "ext4", 24 "ext4",
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 99 }
98 if (error) { 100 if (error) {
99 LOG(ERROR) << "Error watching " << mtab_path_.value(); 101 LOG(ERROR) << "Error watching " << mtab_path_.value();
100 return; 102 return;
101 } 103 }
102 104
103 ReadMtab(); 105 ReadMtab();
104 } 106 }
105 107
106 } // namespace storage_monitor 108 } // namespace storage_monitor
OLDNEW
« no previous file with comments | « components/storage_monitor/mtab_watcher_linux.h ('k') | components/storage_monitor/portable_device_watcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698