| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/power/light_bar.h" | 5 #include "chrome/browser/chromeos/power/light_bar.h" | 
| 6 | 6 | 
| 7 #include <cstring>  // needed for strlen() | 7 #include <cstring>  // needed for strlen() | 
| 8 | 8 | 
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" | 
| 10 #include "base/file_util.h" | 10 #include "base/files/file_util.h" | 
| 11 #include "base/logging.h" | 11 #include "base/logging.h" | 
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" | 
| 13 #include "chromeos/chromeos_switches.h" | 13 #include "chromeos/chromeos_switches.h" | 
| 14 #include "chromeos/dbus/dbus_thread_manager.h" | 14 #include "chromeos/dbus/dbus_thread_manager.h" | 
| 15 | 15 | 
| 16 namespace chromeos { | 16 namespace chromeos { | 
| 17 | 17 | 
| 18 namespace { | 18 namespace { | 
| 19 const int kDarkSuspendDelaySeconds = 4; | 19 const int kDarkSuspendDelaySeconds = 4; | 
| 20 const char kLightBarControlPath[] = | 20 const char kLightBarControlPath[] = | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
| 50 | 50 | 
| 51   if (!has_light_bar_) | 51   if (!has_light_bar_) | 
| 52     return; | 52     return; | 
| 53 | 53 | 
| 54   if (base::WriteFile(control_path_, kKonamiCommand, strlen(kKonamiCommand)) != | 54   if (base::WriteFile(control_path_, kKonamiCommand, strlen(kKonamiCommand)) != | 
| 55       static_cast<int>(strlen(kKonamiCommand))) | 55       static_cast<int>(strlen(kKonamiCommand))) | 
| 56     PLOG(WARNING) << "Unable to flash light bar during dark resume."; | 56     PLOG(WARNING) << "Unable to flash light bar during dark resume."; | 
| 57 } | 57 } | 
| 58 | 58 | 
| 59 }  // namespace chromeos | 59 }  // namespace chromeos | 
| OLD | NEW | 
|---|