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

Side by Side Diff: chrome/browser/system_monitor/media_storage_util.cc

Issue 10919051: Move device notification impl out of chrome/browser/media_gallery (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: modify for chromeos and win Created 8 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
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 // chrome::MediaStorageUtil implementation. 5 // chrome::MediaStorageUtil implementation.
6 6
7 #include "chrome/browser/media_gallery/media_storage_util.h" 7 #include "chrome/browser/system_monitor/media_storage_util.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/system_monitor/system_monitor.h" 14 #include "base/system_monitor/system_monitor.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 16
17 using base::SystemMonitor; 17 using base::SystemMonitor;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 if (device_id) 217 if (device_id)
218 *device_id = MakeDeviceId(FIXED_MASS_STORAGE, path.AsUTF8Unsafe()); 218 *device_id = MakeDeviceId(FIXED_MASS_STORAGE, path.AsUTF8Unsafe());
219 if (device_name) 219 if (device_name)
220 *device_name = path.BaseName().LossyDisplayName(); 220 *device_name = path.BaseName().LossyDisplayName();
221 if (relative_path) 221 if (relative_path)
222 *relative_path = FilePath(); 222 *relative_path = FilePath();
223 } 223 }
224 #endif 224 #endif
225 225
226 } // namespace chrome 226 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/system_monitor/media_storage_util.h ('k') | chrome/browser/system_monitor/media_storage_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698