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

Side by Side Diff: chrome/browser/storage_monitor/mtab_watcher_linux.cc

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/browser/storage_monitor/mtab_watcher_linux.h" 7 #include "chrome/browser/storage_monitor/mtab_watcher_linux.h"
8 8
9 #include <mntent.h> 9 #include <mntent.h>
10 #include <stdio.h> 10 #include <stdio.h>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 14
15 namespace chrome {
16
17 namespace { 15 namespace {
18 16
19 // List of file systems we care about. 17 // List of file systems we care about.
20 const char* const kKnownFileSystems[] = { 18 const char* const kKnownFileSystems[] = {
21 "ext2", 19 "ext2",
22 "ext3", 20 "ext3",
23 "ext4", 21 "ext4",
24 "fat", 22 "fat",
25 "hfsplus", 23 "hfsplus",
26 "iso9660", 24 "iso9660",
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 NOTREACHED(); 92 NOTREACHED();
95 return; 93 return;
96 } 94 }
97 if (error) { 95 if (error) {
98 LOG(ERROR) << "Error watching " << mtab_path_.value(); 96 LOG(ERROR) << "Error watching " << mtab_path_.value();
99 return; 97 return;
100 } 98 }
101 99
102 ReadMtab(); 100 ReadMtab();
103 } 101 }
104
105 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/storage_monitor/mtab_watcher_linux.h ('k') | chrome/browser/storage_monitor/portable_device_watcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698