OLD | NEW |
| (Empty) |
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. | |
4 | |
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_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "base/macros.h" | |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "build/build_config.h" | |
12 #include "chrome/browser/chrome_browser_main_extra_parts.h" | |
13 | |
14 class ChromeBrowserMainExtraPartsAura : public ChromeBrowserMainExtraParts { | |
15 public: | |
16 ChromeBrowserMainExtraPartsAura(); | |
17 ~ChromeBrowserMainExtraPartsAura() override; | |
18 | |
19 // Overridden from ChromeBrowserMainExtraParts: | |
20 void PreEarlyInitialization() override; | |
21 void ToolkitInitialized() override; | |
22 void PreCreateThreads() override; | |
23 void PreProfileInit() override; | |
24 void PostMainMessageLoopRun() override; | |
25 | |
26 private: | |
27 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | |
28 // On the Linux desktop, we want to prevent the user from logging in as root, | |
29 // so that we don't destroy the profile. | |
30 void DetectRunningAsRoot(); | |
31 #endif | |
32 | |
33 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsAura); | |
34 }; | |
35 | |
36 #endif // CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ | |
OLD | NEW |