| OLD | NEW | 
|---|
| 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/ui/webui/chromeos/image_source.h" | 5 #include "chrome/browser/ui/webui/chromeos/image_source.h" | 
| 6 | 6 | 
| 7 #include <stddef.h> | 7 #include <stddef.h> | 
| 8 | 8 | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| 11 #include "base/bind.h" | 11 #include "base/bind.h" | 
| 12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" | 
| 13 #include "base/location.h" | 13 #include "base/location.h" | 
| 14 #include "base/macros.h" | 14 #include "base/macros.h" | 
| 15 #include "base/memory/ref_counted_memory.h" | 15 #include "base/memory/ref_counted_memory.h" | 
| 16 #include "base/sequenced_task_runner.h" | 16 #include "base/sequenced_task_runner.h" | 
| 17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" | 
| 18 #include "base/task_runner_util.h" | 18 #include "base/task_runner_util.h" | 
|  | 19 #include "base/threading/sequenced_worker_pool.h" | 
| 19 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" | 
| 20 #include "chrome/browser/chromeos/login/users/avatar/user_image_loader.h" | 21 #include "chrome/browser/chromeos/login/users/avatar/user_image_loader.h" | 
| 21 #include "chrome/common/url_constants.h" | 22 #include "chrome/common/url_constants.h" | 
| 22 #include "components/user_manager/user_image/user_image.h" | 23 #include "components/user_manager/user_image/user_image.h" | 
| 23 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" | 
| 24 #include "net/base/mime_util.h" | 25 #include "net/base/mime_util.h" | 
| 25 | 26 | 
| 26 using content::BrowserThread; | 27 using content::BrowserThread; | 
| 27 | 28 | 
| 28 namespace chromeos { | 29 namespace chromeos { | 
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 116     return false; | 117     return false; | 
| 117 | 118 | 
| 118   for (size_t i = 0; i < arraysize(kWhitelistedDirectories); i++) { | 119   for (size_t i = 0; i < arraysize(kWhitelistedDirectories); i++) { | 
| 119     if (components[0] == kWhitelistedDirectories[i]) | 120     if (components[0] == kWhitelistedDirectories[i]) | 
| 120       return true; | 121       return true; | 
| 121   } | 122   } | 
| 122   return false; | 123   return false; | 
| 123 } | 124 } | 
| 124 | 125 | 
| 125 }  // namespace chromeos | 126 }  // namespace chromeos | 
| OLD | NEW | 
|---|