ExtensionSyncService: listen for relevant changes instead of being explicitly called...
[chromium-blink-merge.git] / chrome / browser / ui / aura / chrome_browser_main_extra_parts_aura.h
blobf8884cc6c051075eb26d8cc1c259d8dc23606d22
1 // Copyright (c) 2012 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_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_
6 #define CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/chrome_browser_main_extra_parts.h"
13 class ActiveDesktopMonitor;
15 class ChromeBrowserMainExtraPartsAura : public ChromeBrowserMainExtraParts {
16 public:
17 ChromeBrowserMainExtraPartsAura();
18 ~ChromeBrowserMainExtraPartsAura() override;
20 // Overridden from ChromeBrowserMainExtraParts:
21 void PreEarlyInitialization() override;
22 void ToolkitInitialized() override;
23 void PreCreateThreads() override;
24 void PreProfileInit() override;
25 void PostMainMessageLoopRun() override;
27 private:
28 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
29 // On the Linux desktop, we want to prevent the user from logging in as root,
30 // so that we don't destroy the profile.
31 void DetectRunningAsRoot();
32 #endif
34 scoped_ptr<ActiveDesktopMonitor> active_desktop_monitor_;
36 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsAura);
39 #endif // CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_