Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / chrome / browser / google / did_run_updater_win.h
blob5fb8a6eb905e0c0a1ee51d26aa871f7c1e761342
1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_GOOGLE_DID_RUN_UPDATER_WIN_H_
6 #define CHROME_BROWSER_GOOGLE_DID_RUN_UPDATER_WIN_H_
8 #include "base/macros.h"
9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h"
12 // Updates Chrome's "did run" state periodically when the process is in use.
13 // The creation of renderers is used as a proxy for "is the browser in use."
14 class DidRunUpdater : public content::NotificationObserver {
15 public:
16 DidRunUpdater();
17 ~DidRunUpdater() override;
19 private:
20 // content::NotificationObserver:
21 void Observe(int type,
22 const content::NotificationSource& source,
23 const content::NotificationDetails& details) override;
25 // True if the process is running from a system-level installation.
26 bool system_level_;
27 content::NotificationRegistrar registrar_;
29 DISALLOW_COPY_AND_ASSIGN(DidRunUpdater);
32 #endif // CHROME_BROWSER_GOOGLE_DID_RUN_UPDATER_WIN_H_