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

Unified Diff: chrome/browser/media_gallery/media_device_notifications_utils.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_gallery/media_device_notifications_utils.cc
diff --git a/chrome/browser/media_gallery/media_device_notifications_utils.cc b/chrome/browser/media_gallery/media_device_notifications_utils.cc
deleted file mode 100644
index 9036b32b032abb80bf6acc913f777f971f4d541d..0000000000000000000000000000000000000000
--- a/chrome/browser/media_gallery/media_device_notifications_utils.cc
+++ /dev/null
@@ -1,37 +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.
-
-#include "chrome/browser/media_gallery/media_device_notifications_utils.h"
-
-#include "base/file_util.h"
-#include "base/string_util.h"
-#include "content/public/browser/browser_thread.h"
-
-namespace {
-
-#if defined(OS_WIN)
-const wchar_t kDCIMDirName[] = L"DCIM";
-#else
-const char kDCIMDirName[] = "DCIM";
-#endif
-
-} // namespace
-
-namespace chrome {
-
-bool IsMediaDevice(const FilePath::StringType& mount_point) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
-
- FilePath dcim_path(mount_point);
- FilePath::StringType dcim_dir = kDCIMDirName;
- if (!file_util::DirectoryExists(dcim_path.Append(dcim_dir))) {
- // Check for lowercase 'dcim' as well.
- FilePath dcim_path_lower(dcim_path.Append(StringToLowerASCII(dcim_dir)));
- if (!file_util::DirectoryExists(dcim_path_lower))
- return false;
- }
- return true;
-}
-
-} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698