| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/dom_ui/downloads_ui.h" | 5 #include "chrome/browser/dom_ui/downloads_ui.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/string_piece.h" | 9 #include "base/string_piece.h" |
| 10 #include "base/thread.h" | 10 #include "base/thread.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 DownloadsUIHTMLSource* html_source = new DownloadsUIHTMLSource(); | 132 DownloadsUIHTMLSource* html_source = new DownloadsUIHTMLSource(); |
| 133 | 133 |
| 134 // Set up the chrome://downloads/ source. | 134 // Set up the chrome://downloads/ source. |
| 135 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, | 135 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, |
| 136 NewRunnableMethod(&chrome_url_data_manager, | 136 NewRunnableMethod(&chrome_url_data_manager, |
| 137 &ChromeURLDataManager::AddDataSource, | 137 &ChromeURLDataManager::AddDataSource, |
| 138 html_source)); | 138 html_source)); |
| 139 } | 139 } |
| 140 | 140 |
| 141 // static | 141 // static |
| 142 bool DownloadsUI::GetFaviconResourceBytes(std::vector<unsigned char>* bytes) { | 142 RefCountedMemory* DownloadsUI::GetFaviconResourceBytes() { |
| 143 return ResourceBundle::GetSharedInstance(). | 143 return ResourceBundle::GetSharedInstance(). |
| 144 LoadImageResourceBytes(IDR_DOWNLOADS_FAVICON, bytes); | 144 LoadImageResourceBytes(IDR_DOWNLOADS_FAVICON); |
| 145 } | 145 } |
| OLD | NEW |