OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/extensions/api/identity_private/identity_private_api.h" | |
6 | |
7 #include <string> | |
8 | |
9 #include "base/values.h" | |
10 #include "grit/generated_resources.h" | |
11 #include "grit/ui_resources.h" | |
12 #include "ui/base/l10n/l10n_util.h" | |
13 #include "ui/webui/web_ui_util.h" | |
14 | |
15 namespace extensions { | |
16 | |
17 IdentityPrivateGetResourcesFunction::IdentityPrivateGetResourcesFunction() {} | |
18 | |
19 IdentityPrivateGetResourcesFunction::~IdentityPrivateGetResourcesFunction() {} | |
20 | |
21 bool IdentityPrivateGetResourcesFunction::RunImpl() { | |
22 DictionaryValue* result = new DictionaryValue; | |
23 | |
24 result->SetString("IDR_CLOSE_DIALOG", | |
25 webui::GetBitmapDataUrlFromResource(IDR_CLOSE_DIALOG)); | |
26 result->SetString("IDR_CLOSE_DIALOG_H", | |
27 webui::GetBitmapDataUrlFromResource(IDR_CLOSE_DIALOG_H)); | |
28 result->SetString("IDR_CLOSE_DIALOG_P", | |
29 webui::GetBitmapDataUrlFromResource(IDR_CLOSE_DIALOG_P)); | |
30 result->SetString( | |
31 "IDS_EXTENSION_PERMISSIONS_PROMPT_TITLE", | |
32 l10n_util::GetStringUTF16(IDS_EXTENSION_PERMISSIONS_PROMPT_TITLE)); | |
33 | |
34 SetResult(result); | |
35 return true; | |
36 } | |
37 | |
38 } // extensions | |
OLD | NEW |