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

Side by Side Diff: chrome/browser/extensions/signin/scoped_gaia_auth_extension.cc

Issue 961443003: Unload the ScopedGaiaAuthExtension asynchronously. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix whitespace Created 5 years, 9 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
« no previous file with comments | « chrome/browser/extensions/signin/gaia_auth_extension_loader.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/extensions/signin/scoped_gaia_auth_extension.h" 5 #include "chrome/browser/extensions/signin/scoped_gaia_auth_extension.h"
6 6
7 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" 7 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h"
8 #include "content/public/browser/browser_context.h" 8 #include "content/public/browser/browser_context.h"
9 9
10 ScopedGaiaAuthExtension::ScopedGaiaAuthExtension( 10 ScopedGaiaAuthExtension::ScopedGaiaAuthExtension(
11 content::BrowserContext* context) 11 content::BrowserContext* context)
12 : browser_context_(context) { 12 : browser_context_(context) {
13 extensions::GaiaAuthExtensionLoader* loader = 13 extensions::GaiaAuthExtensionLoader* loader =
14 extensions::GaiaAuthExtensionLoader::Get(browser_context_); 14 extensions::GaiaAuthExtensionLoader::Get(browser_context_);
15 if (loader) 15 if (loader)
16 loader->LoadIfNeeded(); 16 loader->LoadIfNeeded();
17 } 17 }
18 18
19 ScopedGaiaAuthExtension::~ScopedGaiaAuthExtension() { 19 ScopedGaiaAuthExtension::~ScopedGaiaAuthExtension() {
20 extensions::GaiaAuthExtensionLoader* loader = 20 extensions::GaiaAuthExtensionLoader* loader =
21 extensions::GaiaAuthExtensionLoader::Get(browser_context_); 21 extensions::GaiaAuthExtensionLoader::Get(browser_context_);
22 if (loader) 22 if (loader)
23 loader->UnloadIfNeeded(); 23 loader->UnloadIfNeededAsync();
24 } 24 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/signin/gaia_auth_extension_loader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698