Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: chrome/browser/component_updater/component_updater_utils.cc

Issue 2656713009: Merged to M57. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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/component_updater/component_updater_utils.h" 5 #include "chrome/browser/component_updater/component_updater_utils.h"
6 6
7 #include "base/files/file_path.h"
8 #include "base/path_service.h"
9 #include "build/build_config.h"
7 #if defined(OS_WIN) 10 #if defined(OS_WIN)
8 #include "chrome/installer/util/install_util.h" 11 #include "chrome/installer/util/install_util.h"
9 #endif // OS_WIN 12 #endif // OS_WIN
10 13
11 namespace component_updater { 14 namespace component_updater {
12 15
13 bool IsPerUserInstall() { 16 bool IsPerUserInstall() {
14 #if defined(OS_WIN) 17 #if defined(OS_WIN)
15 base::FilePath exe_path; 18 base::FilePath exe_path;
16 PathService::Get(base::FILE_EXE, &exe_path); 19 PathService::Get(base::FILE_EXE, &exe_path);
17 return InstallUtil::IsPerUserInstall(exe_path); 20 return InstallUtil::IsPerUserInstall(exe_path);
18 #else 21 #else
19 return true; 22 return true;
20 #endif 23 #endif
21 } 24 }
22 25
23 } // namespace component_updater 26 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698