| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "components/browser_watcher/watcher_win.h" | 5 #include "components/browser_watcher/exit_code_watcher_win.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/process/kill.h" | 9 #include "base/process/kill.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "base/win/registry.h" | 12 #include "base/win/registry.h" |
| 13 | 13 |
| 14 namespace browser_watcher { | 14 namespace browser_watcher { |
| 15 | 15 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 ULONG result = key.WriteValue(value_name.c_str(), exit_code); | 94 ULONG result = key.WriteValue(value_name.c_str(), exit_code); |
| 95 if (result != ERROR_SUCCESS) { | 95 if (result != ERROR_SUCCESS) { |
| 96 LOG(ERROR) << "Unable to write to registry, error " << result; | 96 LOG(ERROR) << "Unable to write to registry, error " << result; |
| 97 return false; | 97 return false; |
| 98 } | 98 } |
| 99 | 99 |
| 100 return true; | 100 return true; |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace browser_watcher | 103 } // namespace browser_watcher |
| OLD | NEW |