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

Side by Side Diff: chrome/browser/chromeos/login/camera_detector.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/camera.cc ('k') | chrome/browser/chromeos/login/cookie_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698