Greg Thompson | 85bd488c | 2017-06-08 09:18:11 | [diff] [blame] | 1 | // Copyright 2017 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/active_use_util.h" |
| 6 | |
| 7 | #include "base/command_line.h" |
| 8 | #include "build/build_config.h" |
| 9 | #include "chrome/common/chrome_switches.h" |
| 10 | |
| 11 | #if defined(OS_WIN) |
| 12 | #include "chrome/install_static/install_modes.h" |
| 13 | #endif |
| 14 | |
| 15 | bool ShouldRecordActiveUse(const base::CommandLine& command_line) { |
| 16 | #if defined(OS_WIN) |
| 17 | if (!install_static::kUseGoogleUpdateIntegration) |
| 18 | return false; |
| 19 | #endif |
Greg Thompson | df00c4b | 2017-11-15 19:52:34 | [diff] [blame] | 20 | return command_line.GetSwitchValueNative(switches::kTryChromeAgain).empty(); |
Greg Thompson | 85bd488c | 2017-06-08 09:18:11 | [diff] [blame] | 21 | } |