blob: a2d05ac2936e4a70c7c51e9d7c838506941db48d [file] [log] [blame]
Greg Thompson85bd488c2017-06-08 09:18:111// 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 Weberf2c32192020-03-26 15:06:1510#include "chrome/install_static/buildflags.h"
Greg Thompson85bd488c2017-06-08 09:18:1111
12bool ShouldRecordActiveUse(const base::CommandLine& command_line) {
Nico Weberf2c32192020-03-26 15:06:1513#if defined(OS_WIN) && !BUILDFLAG(USE_GOOGLE_UPDATE_INTEGRATION)
14 return false;
15#else
Greg Thompsondf00c4b2017-11-15 19:52:3416 return command_line.GetSwitchValueNative(switches::kTryChromeAgain).empty();
Nico Weberf2c32192020-03-26 15:06:1517#endif
Greg Thompson85bd488c2017-06-08 09:18:1118}