Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: chrome/browser/chromeos/login/scoped_gaia_auth_extension.cc

Issue 14820030: Move Chrome OS switches to chromeos/chromeos_switches.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/oobe_browsertest.cc ('k') | chrome/browser/chromeos/login/wallpaper_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698