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

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

Issue 179243002: Change ProfileKeyedAPIFactory to build instances with BrowserContext instead of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | 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 #ifndef CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_
6 #define CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_ 6 #define CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 class Profile; 10 namespace content {
11 class BrowserContext;
12 }
11 13
12 // ScopedGaiaAuthExtension loads gaia auth extension on construction if the 14 // ScopedGaiaAuthExtension loads gaia auth extension on construction if the
13 // extension is not registered yet, and unloads it on destruction if it is no 15 // extension is not registered yet, and unloads it on destruction if it is no
14 // longer used. 16 // longer used.
15 class ScopedGaiaAuthExtension { 17 class ScopedGaiaAuthExtension {
16 public: 18 public:
17 explicit ScopedGaiaAuthExtension(Profile* profile); 19 explicit ScopedGaiaAuthExtension(content::BrowserContext* context);
18 ~ScopedGaiaAuthExtension(); 20 ~ScopedGaiaAuthExtension();
19 21
20 private: 22 private:
21 Profile* profile_; 23 content::BrowserContext* browser_context_;
22 24
23 DISALLOW_COPY_AND_ASSIGN(ScopedGaiaAuthExtension); 25 DISALLOW_COPY_AND_ASSIGN(ScopedGaiaAuthExtension);
24 }; 26 };
25 27
26 #endif // CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_ 28 #endif // CHROME_BROWSER_EXTENSIONS_SIGNIN_SCOPED_GAIA_AUTH_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698