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

Unified Diff: chrome/browser/ui/webui/about_ui.cc

Issue 1117703002: Adjust URLFetcher::Create API so that object is returned as scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix another failure missed by my regex Created 5 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
Index: chrome/browser/ui/webui/about_ui.cc
diff --git a/chrome/browser/ui/webui/about_ui.cc b/chrome/browser/ui/webui/about_ui.cc
index 2e9eb6f49b4c4bc4cc4c366414e4afe97b176194..ec8cd831bc096bf38306fd4eefb5808949df8d7a 100644
--- a/chrome/browser/ui/webui/about_ui.cc
+++ b/chrome/browser/ui/webui/about_ui.cc
@@ -150,10 +150,9 @@ class ChromeOSOnlineTermsHandler : public net::URLFetcherDelegate {
: fetch_callback_(callback) {
std::string eula_URL = base::StringPrintf(chrome::kOnlineEulaURLPath,
locale.c_str());
- eula_fetcher_.reset(net::URLFetcher::Create(0 /* ID used for testing */,
- GURL(eula_URL),
- net::URLFetcher::GET,
- this));
+ eula_fetcher_ =
+ net::URLFetcher::Create(0 /* ID used for testing */, GURL(eula_URL),
+ net::URLFetcher::GET, this);
eula_fetcher_->SetRequestContext(
g_browser_process->system_request_context());
eula_fetcher_->AddExtraRequestHeader("Accept: text/html");

Powered by Google App Engine
This is Rietveld 408576698