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

Side by Side Diff: chrome/browser/system_monitor/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 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 #include "chrome/browser/media_gallery/media_device_notifications_utils.h" 5 #include "chrome/browser/system_monitor/media_device_notifications_utils.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 10
11 namespace { 11 namespace {
12 12
13 #if defined(OS_WIN) 13 #if defined(OS_WIN)
14 const wchar_t kDCIMDirName[] = L"DCIM"; 14 const wchar_t kDCIMDirName[] = L"DCIM";
15 #else 15 #else
(...skipping 12 matching lines...) Expand all
28 if (!file_util::DirectoryExists(dcim_path.Append(dcim_dir))) { 28 if (!file_util::DirectoryExists(dcim_path.Append(dcim_dir))) {
29 // Check for lowercase 'dcim' as well. 29 // Check for lowercase 'dcim' as well.
30 FilePath dcim_path_lower(dcim_path.Append(StringToLowerASCII(dcim_dir))); 30 FilePath dcim_path_lower(dcim_path.Append(StringToLowerASCII(dcim_dir)));
31 if (!file_util::DirectoryExists(dcim_path_lower)) 31 if (!file_util::DirectoryExists(dcim_path_lower))
32 return false; 32 return false;
33 } 33 }
34 return true; 34 return true;
35 } 35 }
36 36
37 } // namespace chrome 37 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698