OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/profiles/profile_downloader.h" | 5 #include "chrome/browser/profiles/profile_downloader.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
12 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
13 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
14 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
15 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
16 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 // downloader has been waiting so we need to fetch the image data now. | 392 // downloader has been waiting so we need to fetch the image data now. |
391 if (waiting_for_account_info_) { | 393 if (waiting_for_account_info_) { |
392 waiting_for_account_info_ = false; | 394 waiting_for_account_info_ = false; |
393 // FetchImageData might call the delegate's OnProfileDownloadSuccess | 395 // FetchImageData might call the delegate's OnProfileDownloadSuccess |
394 // synchronously, causing |this| to be deleted so there should not be more | 396 // synchronously, causing |this| to be deleted so there should not be more |
395 // code after it. | 397 // code after it. |
396 FetchImageData(); | 398 FetchImageData(); |
397 } | 399 } |
398 } | 400 } |
399 } | 401 } |
OLD | NEW |