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

Unified Diff: chrome/browser/chromeos/app_mode/fake_cws.cc

Issue 1870793002: Convert //chrome/browser/chromeos 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/app_mode/fake_cws.h ('k') | chrome/browser/chromeos/app_mode/kiosk_app_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/app_mode/fake_cws.cc
diff --git a/chrome/browser/chromeos/app_mode/fake_cws.cc b/chrome/browser/chromeos/app_mode/fake_cws.cc
index e49396e33eabb7bb890babce6b50290a052d1c86..b8d162913e22ec247cc2036078e0c5437e73bd3e 100644
--- a/chrome/browser/chromeos/app_mode/fake_cws.cc
+++ b/chrome/browser/chromeos/app_mode/fake_cws.cc
@@ -188,7 +188,8 @@ bool FakeCWS::GetUpdateCheckContent(const std::vector<std::string>& ids,
return true;
}
-scoped_ptr<HttpResponse> FakeCWS::HandleRequest(const HttpRequest& request) {
+std::unique_ptr<HttpResponse> FakeCWS::HandleRequest(
+ const HttpRequest& request) {
GURL request_url = GURL("http://localhost").Resolve(request.relative_url);
std::string request_path = request_url.path();
if (request_path.find(update_check_end_point_) != std::string::npos &&
@@ -198,7 +199,8 @@ scoped_ptr<HttpResponse> FakeCWS::HandleRequest(const HttpRequest& request) {
std::string update_check_content;
if (GetUpdateCheckContent(ids, &update_check_content)) {
++update_check_count_;
- scoped_ptr<BasicHttpResponse> http_response(new BasicHttpResponse());
+ std::unique_ptr<BasicHttpResponse> http_response(
+ new BasicHttpResponse());
http_response->set_code(net::HTTP_OK);
http_response->set_content_type("text/xml");
http_response->set_content(update_check_content);
@@ -207,7 +209,7 @@ scoped_ptr<HttpResponse> FakeCWS::HandleRequest(const HttpRequest& request) {
}
}
- return scoped_ptr<HttpResponse>();
+ return std::unique_ptr<HttpResponse>();
}
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/app_mode/fake_cws.h ('k') | chrome/browser/chromeos/app_mode/kiosk_app_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698