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
3 // found in the LICENSE file.
5 #include "chrome/browser/extensions/signin/scoped_gaia_auth_extension.h"
7 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h"
9 ScopedGaiaAuthExtension::ScopedGaiaAuthExtension(Profile
* profile
)
11 extensions::GaiaAuthExtensionLoader
* loader
=
12 extensions::GaiaAuthExtensionLoader::Get(profile_
);
14 loader
->LoadIfNeeded();
17 ScopedGaiaAuthExtension::~ScopedGaiaAuthExtension() {
18 extensions::GaiaAuthExtensionLoader
* loader
=
19 extensions::GaiaAuthExtensionLoader::Get(profile_
);
21 loader
->UnloadIfNeeded();