blob: 53d90a33687f5ab85ac7dc3291be2183277286c1 [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"
10
11#if defined(OS_WIN)
12#include "chrome/install_static/install_modes.h"
13#endif
14
15bool ShouldRecordActiveUse(const base::CommandLine& command_line) {
16#if defined(OS_WIN)
17 if (!install_static::kUseGoogleUpdateIntegration)
18 return false;
19#endif
Greg Thompsondf00c4b2017-11-15 19:52:3420 return command_line.GetSwitchValueNative(switches::kTryChromeAgain).empty();
Greg Thompson85bd488c2017-06-08 09:18:1121}