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

Side by Side Diff: chrome/browser/ui/android/login_handler_android.cc

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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/login/login_handler.h" 5 #include "chrome/browser/ui/login/login_handler.h"
6 6
7 #include <memory>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
10 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" 12 #include "chrome/browser/ui/android/chrome_http_auth_handler.h"
12 #include "chrome/browser/ui/android/view_android_helper.h" 13 #include "chrome/browser/ui/android/view_android_helper.h"
13 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
14 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
15 #include "net/base/auth.h" 16 #include "net/base/auth.h"
16 #include "ui/android/view_android.h" 17 #include "ui/android/view_android.h"
17 #include "ui/android/window_android.h" 18 #include "ui/android/window_android.h"
18 19
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 "missing"; 73 "missing";
73 } 74 }
74 } 75 }
75 76
76 protected: 77 protected:
77 ~LoginHandlerAndroid() override {} 78 ~LoginHandlerAndroid() override {}
78 79
79 void CloseDialog() override {} 80 void CloseDialog() override {}
80 81
81 private: 82 private:
82 scoped_ptr<ChromeHttpAuthHandler> chrome_http_auth_handler_; 83 std::unique_ptr<ChromeHttpAuthHandler> chrome_http_auth_handler_;
83 }; 84 };
84 85
85 // static 86 // static
86 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, 87 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info,
87 net::URLRequest* request) { 88 net::URLRequest* request) {
88 return new LoginHandlerAndroid(auth_info, request); 89 return new LoginHandlerAndroid(auth_info, request);
89 } 90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698