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

Unified Diff: chrome/browser/storage_monitor/media_device_notifications_utils.h

Issue 12544005: Consolidate storage_monitor/MediaDeviceNotificationsUtils into MediaStorageUtil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac apply patch Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/storage_monitor/media_device_notifications_utils.h
diff --git a/chrome/browser/storage_monitor/media_device_notifications_utils.h b/chrome/browser/storage_monitor/media_device_notifications_utils.h
deleted file mode 100644
index 31835fb926010088e26b1bd88dde50e1cc589f87..0000000000000000000000000000000000000000
--- a/chrome/browser/storage_monitor/media_device_notifications_utils.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Common code shared between MediaDeviceNotifications{Win,Linux}.
-
-#ifndef CHROME_BROWSER_STORAGE_MONITOR_MEDIA_DEVICE_NOTIFICATIONS_UTILS_H_
-#define CHROME_BROWSER_STORAGE_MONITOR_MEDIA_DEVICE_NOTIFICATIONS_UTILS_H_
-
-#include "base/files/file_path.h"
-#include "base/string16.h"
-
-namespace chrome {
-
-// Check if the file system at the passed mount point looks like a media
-// device using the existence of DCIM directory.
-// Returns true, if it is a media device otherwise return false.
-// Mac OS X behaves similarly, but this is not the only heuristic it uses.
-// TODO(vandebo) Try to figure out how Mac OS X decides this, and rename
-// to avoid confusion with MediaStorageUtil::IsMediaDevice.
-bool IsMediaDevice(const base::FilePath::StringType& mount_point);
-
-// Constructs the device product name from |vendor_name| and |model_name|.
-string16 GetFullProductName(const std::string& vendor_name,
- const std::string& model_name);
-
-// Constructs the display name for device from |storage_size_in_bytes| and
-// |name|.
-string16 GetDisplayNameForDevice(uint64 storage_size_in_bytes,
- const string16& name);
-
-} // namespace chrome
-
-#endif // CHROME_BROWSER_STORAGE_MONITOR_MEDIA_DEVICE_NOTIFICATIONS_UTILS_H_
« no previous file with comments | « chrome/browser/storage_monitor/disk_info_mac.mm ('k') | chrome/browser/storage_monitor/media_device_notifications_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698