blob: 97368e195f9baba955a73b45c974f5d3523a787c [file] [log] [blame]
sorin21423682016-10-06 17:51:201// 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
sorin96d71e0c2017-01-25 17:39:117#include "build/build_config.h"
sorin21423682016-10-06 17:51:208#if defined(OS_WIN)
9#include "chrome/installer/util/install_util.h"
10#endif // OS_WIN
11
12namespace component_updater {
13
14bool IsPerUserInstall() {
15#if defined(OS_WIN)
Sorin Jianub3296162017-12-13 20:26:3216 // The installer computes and caches this value in memory during the
17 // process start up.
grt973412f2017-02-25 08:04:2118 return InstallUtil::IsPerUserInstall();
sorin21423682016-10-06 17:51:2019#else
20 return true;
21#endif
22}
23
24} // namespace component_updater