sorin | 2142368 | 2016-10-06 17:51:20 | [diff] [blame] | 1 | // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "chrome/browser/component_updater/component_updater_utils.h" |
| 6 | |
sorin | 96d71e0c | 2017-01-25 17:39:11 | [diff] [blame] | 7 | #include "build/build_config.h" |
sorin | 2142368 | 2016-10-06 17:51:20 | [diff] [blame] | 8 | #if defined(OS_WIN) |
| 9 | #include "chrome/installer/util/install_util.h" |
| 10 | #endif // OS_WIN |
| 11 | |
| 12 | namespace component_updater { |
| 13 | |
| 14 | bool IsPerUserInstall() { |
| 15 | #if defined(OS_WIN) |
Sorin Jianu | b329616 | 2017-12-13 20:26:32 | [diff] [blame] | 16 | // The installer computes and caches this value in memory during the |
| 17 | // process start up. |
grt | 973412f | 2017-02-25 08:04:21 | [diff] [blame] | 18 | return InstallUtil::IsPerUserInstall(); |
sorin | 2142368 | 2016-10-06 17:51:20 | [diff] [blame] | 19 | #else |
| 20 | return true; |
| 21 | #endif |
| 22 | } |
| 23 | |
| 24 | } // namespace component_updater |