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/browser_process_platform_part_win.h" |
| 6 | |
Greg Thompson | 85bd488c | 2017-06-08 09:18:11 | [diff] [blame] | 7 | #include "chrome/browser/active_use_util.h" |
| 8 | #include "chrome/browser/google/did_run_updater_win.h" |
| 9 | |
| 10 | BrowserProcessPlatformPart::BrowserProcessPlatformPart() = default; |
| 11 | BrowserProcessPlatformPart::~BrowserProcessPlatformPart() = default; |
| 12 | |
| 13 | void BrowserProcessPlatformPart::PlatformSpecificCommandLineProcessing( |
| 14 | const base::CommandLine& command_line) { |
| 15 | if (!did_run_updater_ && ShouldRecordActiveUse(command_line)) |
Jeremy Roman | ec48d7a | 2018-03-01 17:35:09 | [diff] [blame] | 16 | did_run_updater_ = std::make_unique<DidRunUpdater>(); |
Greg Thompson | 85bd488c | 2017-06-08 09:18:11 | [diff] [blame] | 17 | } |