| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/installer/util/beacons.h" | 5 #include "chrome/installer/util/beacons.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "base/win/registry.h" | 9 #include "base/win/registry.h" |
| 8 #include "base/win/win_util.h" | 10 #include "base/win/win_util.h" |
| 9 #include "chrome/installer/util/app_registration_data.h" | 11 #include "chrome/installer/util/app_registration_data.h" |
| 10 #include "chrome/installer/util/browser_distribution.h" | 12 #include "chrome/installer/util/browser_distribution.h" |
| 11 #include "chrome/installer/util/install_util.h" | 13 #include "chrome/installer/util/install_util.h" |
| 12 #include "chrome/installer/util/shell_util.h" | 14 #include "chrome/installer/util/shell_util.h" |
| 13 | 15 |
| 14 void UpdateDefaultBrowserBeaconForPath(const base::FilePath& chrome_exe) { | 16 void UpdateDefaultBrowserBeaconForPath(const base::FilePath& chrome_exe) { |
| 15 // Getting Chrome's default state causes the beacon to be updated via a call | 17 // Getting Chrome's default state causes the beacon to be updated via a call |
| 16 // to UpdateDefaultBrowserBeaconWithState below. | 18 // to UpdateDefaultBrowserBeaconWithState below. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 key_path_.append(name.data(), name.size()); | 144 key_path_.append(name.data(), name.size()); |
| 143 // This should never fail. If it does, the beacon will be written in the | 145 // This should never fail. If it does, the beacon will be written in the |
| 144 // key's default value, which is okay since the majority case is likely a | 146 // key's default value, which is okay since the majority case is likely a |
| 145 // machine with a single user. | 147 // machine with a single user. |
| 146 if (!base::win::GetUserSidString(&value_name_)) | 148 if (!base::win::GetUserSidString(&value_name_)) |
| 147 NOTREACHED(); | 149 NOTREACHED(); |
| 148 } | 150 } |
| 149 } | 151 } |
| 150 | 152 |
| 151 } // namespace installer_util | 153 } // namespace installer_util |
| OLD | NEW |