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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/inline_login_handler_chromeos.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
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_UI_WEBUI_CHROMEOS_LOGIN_INLINE_LOGIN_HANDLER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_INLINE_LOGIN_HANDLER_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_INLINE_LOGIN_HANDLER_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_INLINE_LOGIN_HANDLER_CHROMEOS_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/webui/signin/inline_login_handler.h" 11 #include "chrome/browser/ui/webui/signin/inline_login_handler.h"
11 12
12 namespace chromeos { 13 namespace chromeos {
13 14
14 class OAuth2TokenFetcher; 15 class OAuth2TokenFetcher;
15 16
16 // Implementation for the inline login WebUI handler on ChromeOS. 17 // Implementation for the inline login WebUI handler on ChromeOS.
17 class InlineLoginHandlerChromeOS : public ::InlineLoginHandler { 18 class InlineLoginHandlerChromeOS : public ::InlineLoginHandler {
18 public: 19 public:
19 InlineLoginHandlerChromeOS(); 20 InlineLoginHandlerChromeOS();
20 ~InlineLoginHandlerChromeOS() override; 21 ~InlineLoginHandlerChromeOS() override;
21 22
22 private: 23 private:
23 class InlineLoginUIOAuth2Delegate; 24 class InlineLoginUIOAuth2Delegate;
24 25
25 // InlineLoginHandler overrides: 26 // InlineLoginHandler overrides:
26 void CompleteLogin(const base::ListValue* args) override; 27 void CompleteLogin(const base::ListValue* args) override;
27 28
28 scoped_ptr<InlineLoginUIOAuth2Delegate> oauth2_delegate_; 29 std::unique_ptr<InlineLoginUIOAuth2Delegate> oauth2_delegate_;
29 scoped_ptr<chromeos::OAuth2TokenFetcher> oauth2_token_fetcher_; 30 std::unique_ptr<chromeos::OAuth2TokenFetcher> oauth2_token_fetcher_;
30 31
31 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerChromeOS); 32 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerChromeOS);
32 }; 33 };
33 34
34 } // namespace chromeos 35 } // namespace chromeos
35 36
36 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_INLINE_LOGIN_HANDLER_CHROMEOS_ H_ 37 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_INLINE_LOGIN_HANDLER_CHROMEOS_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698