| OLD | NEW |
| 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/chromeos/camera_detector.h" | 5 #include "chrome/browser/chromeos/camera_detector.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/string_split.h" | |
| 11 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/strings/string_split.h" |
| 12 #include "base/task_runner_util.h" | 12 #include "base/task_runner_util.h" |
| 13 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
| 14 #include "chrome/browser/storage_monitor/udev_util_linux.h" | 14 #include "chrome/browser/storage_monitor/udev_util_linux.h" |
| 15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 // Sysfs directory containing V4L devices. | 21 // Sysfs directory containing V4L devices. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 base::SplitString(v4l_capabilities, kV4LCapabilitiesDelim, &caps); | 79 base::SplitString(v4l_capabilities, kV4LCapabilitiesDelim, &caps); |
| 80 if (find(caps.begin(), caps.end(), kV4LCaptureCapability) != caps.end()) { | 80 if (find(caps.begin(), caps.end(), kV4LCaptureCapability) != caps.end()) { |
| 81 return true; | 81 return true; |
| 82 } | 82 } |
| 83 } | 83 } |
| 84 } | 84 } |
| 85 return false; | 85 return false; |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace chromeos | 88 } // namespace chromeos |
| OLD | NEW |