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

Side by Side Diff: chrome/browser/chromeos/login/image_downloader.cc

Issue 7006005: Move UrlFetcher to content. I originally thought that it's only used by chrome code, but turns o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/login/image_downloader.h" 5 #include "chrome/browser/chromeos/login/image_downloader.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/stringprintf.h" 12 #include "base/stringprintf.h"
13 #include "chrome/browser/profiles/profile_manager.h" 13 #include "chrome/browser/profiles/profile_manager.h"
14 #include "chrome/common/net/url_fetcher.h"
15 #include "content/browser/browser_thread.h" 14 #include "content/browser/browser_thread.h"
16 15
17 namespace chromeos { 16 namespace chromeos {
18 17
19 namespace { 18 namespace {
20 19
21 // Template for optional authorization header. 20 // Template for optional authorization header.
22 const char kAuthorizationHeader[] = "Authorization: GoogleLogin auth=%s"; 21 const char kAuthorizationHeader[] = "Authorization: GoogleLogin auth=%s";
23 22
24 } // namespace 23 } // namespace
(...skipping 30 matching lines...) Expand all
55 return; 54 return;
56 } 55 }
57 56
58 VLOG(1) << "Decoding the image..."; 57 VLOG(1) << "Decoding the image...";
59 scoped_refptr<ImageDecoder> image_decoder = new ImageDecoder(delegate_, data); 58 scoped_refptr<ImageDecoder> image_decoder = new ImageDecoder(delegate_, data);
60 image_decoder->Start(); 59 image_decoder->Start();
61 MessageLoop::current()->DeleteSoon(FROM_HERE, this); 60 MessageLoop::current()->DeleteSoon(FROM_HERE, this);
62 } 61 }
63 62
64 } // namespace chromeos 63 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/image_downloader.h ('k') | chrome/browser/chromeos/login/issue_response_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698