OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/chromeos/login/scoped_gaia_auth_extension.h" | 5 #include "chrome/browser/chromeos/login/scoped_gaia_auth_extension.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/browser/chromeos/system/statistics_provider.h" | 8 #include "chrome/browser/chromeos/system/statistics_provider.h" |
9 #include "chrome/browser/extensions/component_loader.h" | 9 #include "chrome/browser/extensions/component_loader.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
11 #include "chrome/browser/extensions/extension_system.h" | 11 #include "chrome/browser/extensions/extension_system.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/common/chrome_constants.h" | 13 #include "chrome/common/chrome_constants.h" |
14 #include "chrome/common/chrome_switches.h" | 14 #include "chromeos/chromeos_switches.h" |
15 #include "grit/browser_resources.h" | 15 #include "grit/browser_resources.h" |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 extensions::ComponentLoader* GetComponentLoader(Profile* profile) { | 21 extensions::ComponentLoader* GetComponentLoader(Profile* profile) { |
22 extensions::ExtensionSystem* extension_system = | 22 extensions::ExtensionSystem* extension_system = |
23 extensions::ExtensionSystem::Get(profile); | 23 extensions::ExtensionSystem::Get(profile); |
24 ExtensionService* extension_service = extension_system->extension_service(); | 24 ExtensionService* extension_service = extension_system->extension_service(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 ScopedGaiaAuthExtension::ScopedGaiaAuthExtension(Profile* profile) | 59 ScopedGaiaAuthExtension::ScopedGaiaAuthExtension(Profile* profile) |
60 : profile_(profile) { | 60 : profile_(profile) { |
61 LoadGaiaAuthExtension(profile_); | 61 LoadGaiaAuthExtension(profile_); |
62 } | 62 } |
63 | 63 |
64 ScopedGaiaAuthExtension::~ScopedGaiaAuthExtension() { | 64 ScopedGaiaAuthExtension::~ScopedGaiaAuthExtension() { |
65 UnloadGaiaAuthExtension(profile_); | 65 UnloadGaiaAuthExtension(profile_); |
66 } | 66 } |
67 | 67 |
68 } // namespace chromeos | 68 } // namespace chromeos |
OLD | NEW |