OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ | 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_ | 6 #define CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "chrome/browser/chrome_browser_main_extra_parts.h" | 12 #include "chrome/browser/chrome_browser_main_extra_parts.h" |
13 | 13 |
14 class ChromeBrowserMainExtraPartsAura : public ChromeBrowserMainExtraParts { | 14 class ChromeBrowserMainExtraPartsAura : public ChromeBrowserMainExtraParts { |
15 public: | 15 public: |
16 ChromeBrowserMainExtraPartsAura(); | 16 ChromeBrowserMainExtraPartsAura(); |
17 ~ChromeBrowserMainExtraPartsAura() override; | 17 ~ChromeBrowserMainExtraPartsAura() override; |
18 | 18 |
19 // Overridden from ChromeBrowserMainExtraParts: | 19 // Overridden from ChromeBrowserMainExtraParts: |
20 void PreEarlyInitialization() override; | 20 void PreEarlyInitialization() override; |
21 void ToolkitInitialized() override; | 21 void ToolkitInitialized() override; |
22 void PreCreateThreads() override; | 22 void PreCreateThreadsBegin() override; |
23 void PreProfileInit() override; | 23 void PreProfileInit() override; |
24 void PostMainMessageLoopRun() override; | 24 void PostMainMessageLoopRun() override; |
25 | 25 |
26 private: | 26 private: |
27 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 27 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
28 // On the Linux desktop, we want to prevent the user from logging in as root, | 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. | 29 // so that we don't destroy the profile. |
30 void DetectRunningAsRoot(); | 30 void DetectRunningAsRoot(); |
31 #endif | 31 #endif |
32 | 32 |
33 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsAura); | 33 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsAura); |
34 }; | 34 }; |
35 | 35 |
36 #endif // CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ | 36 #endif // CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ |
OLD | NEW |