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" |
Nico Weber | f2c3219 | 2020-03-26 15:06:15 | [diff] [blame] | 10 | #include "chrome/install_static/buildflags.h" |
Greg Thompson | 85bd488c | 2017-06-08 09:18:11 | [diff] [blame] | 11 | |
| 12 | bool ShouldRecordActiveUse(const base::CommandLine& command_line) { |
Nico Weber | f2c3219 | 2020-03-26 15:06:15 | [diff] [blame] | 13 | #if defined(OS_WIN) && !BUILDFLAG(USE_GOOGLE_UPDATE_INTEGRATION) |
| 14 | return false; |
| 15 | #else |
Greg Thompson | df00c4b | 2017-11-15 19:52:34 | [diff] [blame] | 16 | return command_line.GetSwitchValueNative(switches::kTryChromeAgain).empty(); |
Nico Weber | f2c3219 | 2020-03-26 15:06:15 | [diff] [blame] | 17 | #endif |
Greg Thompson | 85bd488c | 2017-06-08 09:18:11 | [diff] [blame] | 18 | } |