Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / extensions / signin / scoped_gaia_auth_extension.cc
blob4c5f343bf1ddb268c71e40c97adc475e6be598cb
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)
10 : profile_(profile) {
11 extensions::GaiaAuthExtensionLoader* loader =
12 extensions::GaiaAuthExtensionLoader::Get(profile_);
13 if (loader)
14 loader->LoadIfNeeded();
17 ScopedGaiaAuthExtension::~ScopedGaiaAuthExtension() {
18 extensions::GaiaAuthExtensionLoader* loader =
19 extensions::GaiaAuthExtensionLoader::Get(profile_);
20 if (loader)
21 loader->UnloadIfNeeded();