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

Side by Side Diff: chrome/browser/chromeos/customization/customization_wallpaper_downloader.cc

Issue 2691263002: Revert of Remove header dependencies from sequence_checker.h to sequenced_worker_pool.h (Closed)
Patch Set: Created 3 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/customization/customization_wallpaper_download er.h" 5 #include "chrome/browser/chromeos/customization/customization_wallpaper_download er.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/threading/sequenced_worker_pool.h"
13 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
14 #include "net/base/load_flags.h" 13 #include "net/base/load_flags.h"
15 #include "net/http/http_status_code.h" 14 #include "net/http/http_status_code.h"
16 #include "net/url_request/url_fetcher.h" 15 #include "net/url_request/url_fetcher.h"
17 #include "net/url_request/url_request_context_getter.h" 16 #include "net/url_request/url_request_context_getter.h"
18 #include "url/gurl.h" 17 #include "url/gurl.h"
19 18
20 namespace chromeos { 19 namespace chromeos {
21 namespace { 20 namespace {
22 // This is temporary file suffix (for downloading or resizing). 21 // This is temporary file suffix (for downloading or resizing).
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 } 185 }
187 } 186 }
188 187
189 void CustomizationWallpaperDownloader::OnTemporaryFileRenamed( 188 void CustomizationWallpaperDownloader::OnTemporaryFileRenamed(
190 std::unique_ptr<bool> success) { 189 std::unique_ptr<bool> success) {
191 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 190 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
192 on_wallpaper_fetch_completed_.Run(*success, wallpaper_url_); 191 on_wallpaper_fetch_completed_.Run(*success, wallpaper_url_);
193 } 192 }
194 193
195 } // namespace chromeos 194 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/base/file_flusher_unittest.cc ('k') | chrome/browser/chromeos/external_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698