| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/login/camera_detector.h" | 5 #include "chrome/browser/chromeos/login/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/string_split.h" | 9 #include "base/string_split.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "chrome/browser/chromeos/system/udev_info_provider.h" | 11 #include "chrome/browser/chromeos/system/udev_info_provider.h" |
| 12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 | 13 |
| 14 using content::BrowserThread; |
| 15 |
| 14 namespace chromeos { | 16 namespace chromeos { |
| 15 | 17 |
| 16 namespace { | 18 namespace { |
| 17 | 19 |
| 18 // Sysfs directory containing V4L devices. | 20 // Sysfs directory containing V4L devices. |
| 19 const char kV4LSubsystemDir[] = "/sys/class/video4linux/"; | 21 const char kV4LSubsystemDir[] = "/sys/class/video4linux/"; |
| 20 // Name of the udev property with V4L capabilities. | 22 // Name of the udev property with V4L capabilities. |
| 21 const char kV4LCapabilities[] = "ID_V4L_CAPABILITIES"; | 23 const char kV4LCapabilities[] = "ID_V4L_CAPABILITIES"; |
| 22 // Delimiter character for udev V4L capabilities. | 24 // Delimiter character for udev V4L capabilities. |
| 23 const char kV4LCapabilitiesDelim = ':'; | 25 const char kV4LCapabilitiesDelim = ':'; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 break; | 71 break; |
| 70 } | 72 } |
| 71 } | 73 } |
| 72 } | 74 } |
| 73 | 75 |
| 74 camera_presence_ = present ? kCameraPresent : kCameraAbsent; | 76 camera_presence_ = present ? kCameraPresent : kCameraAbsent; |
| 75 presence_check_in_progress_ = false; | 77 presence_check_in_progress_ = false; |
| 76 } | 78 } |
| 77 | 79 |
| 78 } // namespace chromeos | 80 } // namespace chromeos |
| OLD | NEW |