| 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 DictionaryValue* task = new DictionaryValue(); | 547 DictionaryValue* task = new DictionaryValue(); |
| 548 task->SetString("taskId", MakeTaskID(extension_id.data(), | 548 task->SetString("taskId", MakeTaskID(extension_id.data(), |
| 549 iter->second->id().data())); | 549 iter->second->id().data())); |
| 550 task->SetString("title", iter->second->title()); | 550 task->SetString("title", iter->second->title()); |
| 551 // TODO(zelidrag): Figure out how to expose icon URL that task defined in | 551 // TODO(zelidrag): Figure out how to expose icon URL that task defined in |
| 552 // manifest instead of the default extension icon. | 552 // manifest instead of the default extension icon. |
| 553 GURL icon = | 553 GURL icon = |
| 554 ExtensionIconSource::GetIconURL(extension, | 554 ExtensionIconSource::GetIconURL(extension, |
| 555 Extension::EXTENSION_ICON_BITTY, | 555 Extension::EXTENSION_ICON_BITTY, |
| 556 ExtensionIconSet::MATCH_BIGGER, | 556 ExtensionIconSet::MATCH_BIGGER, |
| 557 false); // grayscale | 557 false, NULL); // grayscale |
| 558 task->SetString("iconUrl", icon.spec()); | 558 task->SetString("iconUrl", icon.spec()); |
| 559 result_list->Append(task); | 559 result_list->Append(task); |
| 560 } | 560 } |
| 561 | 561 |
| 562 // TODO(zelidrag, serya): Add intent content tasks to result_list once we | 562 // TODO(zelidrag, serya): Add intent content tasks to result_list once we |
| 563 // implement that API. | 563 // implement that API. |
| 564 SendResponse(true); | 564 SendResponse(true); |
| 565 return true; | 565 return true; |
| 566 } | 566 } |
| 567 | 567 |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1474 #undef SET_STRING | 1474 #undef SET_STRING |
| 1475 | 1475 |
| 1476 // TODO(serya): Create a new string in .grd file for this one in M13. | 1476 // TODO(serya): Create a new string in .grd file for this one in M13. |
| 1477 dict->SetString("PREVIEW_IMAGE", | 1477 dict->SetString("PREVIEW_IMAGE", |
| 1478 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON)); | 1478 l10n_util::GetStringUTF16(IDS_CERT_MANAGER_VIEW_CERT_BUTTON)); |
| 1479 dict->SetString("PLAY_MEDIA", | 1479 dict->SetString("PLAY_MEDIA", |
| 1480 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); | 1480 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); |
| 1481 | 1481 |
| 1482 return true; | 1482 return true; |
| 1483 } | 1483 } |
| OLD | NEW |