| OLD | NEW |
| 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/extensions/extension_file_browser_private_api.h" | 5 #include "chrome/browser/extensions/extension_file_browser_private_api.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 file_urls.push_back(GURL(origin_file_url)); | 789 file_urls.push_back(GURL(origin_file_url)); |
| 790 } | 790 } |
| 791 // Get local file system instance on file thread. | 791 // Get local file system instance on file thread. |
| 792 BrowserThread::PostTask( | 792 BrowserThread::PostTask( |
| 793 BrowserThread::FILE, FROM_HERE, | 793 BrowserThread::FILE, FROM_HERE, |
| 794 NewRunnableMethod(this, | 794 NewRunnableMethod(this, |
| 795 &ExecuteTasksFileBrowserFunction::RequestFileEntryOnFileThread, | 795 &ExecuteTasksFileBrowserFunction::RequestFileEntryOnFileThread, |
| 796 source_url_, | 796 source_url_, |
| 797 task_id, | 797 task_id, |
| 798 file_urls)); | 798 file_urls)); |
| 799 result_.reset(new base::FundamentalValue(true)); | 799 result_.reset(base::TrueValue()); |
| 800 return true; | 800 return true; |
| 801 } | 801 } |
| 802 | 802 |
| 803 void ExecuteTasksFileBrowserFunction::RequestFileEntryOnFileThread( | 803 void ExecuteTasksFileBrowserFunction::RequestFileEntryOnFileThread( |
| 804 const GURL& source_url, const std::string& task_id, | 804 const GURL& source_url, const std::string& task_id, |
| 805 const std::vector<GURL>& file_urls) { | 805 const std::vector<GURL>& file_urls) { |
| 806 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); | 806 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); |
| 807 fileapi::FileSystemOperation* operation = | 807 fileapi::FileSystemOperation* operation = |
| 808 new fileapi::FileSystemOperation( | 808 new fileapi::FileSystemOperation( |
| 809 new ExecuteTasksFileSystemCallbackDispatcher( | 809 new ExecuteTasksFileSystemCallbackDispatcher( |
| (...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1521 #undef SET_STRING | 1521 #undef SET_STRING |
| 1522 | 1522 |
| 1523 // TODO(serya): Create a new string in .grd file for this one in M13. | 1523 // TODO(serya): Create a new string in .grd file for this one in M13. |
| 1524 dict->SetString("PREVIEW_IMAGE", | 1524 dict->SetString("PREVIEW_IMAGE", |
| 1525 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON)); | 1525 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON)); |
| 1526 dict->SetString("PLAY_MEDIA", | 1526 dict->SetString("PLAY_MEDIA", |
| 1527 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); | 1527 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); |
| 1528 | 1528 |
| 1529 return true; | 1529 return true; |
| 1530 } | 1530 } |
| OLD | NEW |