Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/browser/extensions/api/identity_private/identity_private_api.cc

Issue 272173004: Fixed close button for retina displays in identity approval scope UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 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/api/identity_private/identity_private_api.h" 5 #include "chrome/browser/extensions/api/identity_private/identity_private_api.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
11 #include "grit/ui_resources.h"
12 #include "ui/base/l10n/l10n_util.h" 11 #include "ui/base/l10n/l10n_util.h"
13 #include "ui/base/webui/web_ui_util.h"
14 12
15 namespace extensions { 13 namespace extensions {
16 14
17 IdentityPrivateGetResourcesFunction::IdentityPrivateGetResourcesFunction() {} 15 IdentityPrivateGetStringsFunction::IdentityPrivateGetStringsFunction() {}
18 16
19 IdentityPrivateGetResourcesFunction::~IdentityPrivateGetResourcesFunction() {} 17 IdentityPrivateGetStringsFunction::~IdentityPrivateGetStringsFunction() {}
20 18
21 bool IdentityPrivateGetResourcesFunction::RunSync() { 19 bool IdentityPrivateGetStringsFunction::RunSync() {
22 base::DictionaryValue* result = new base::DictionaryValue; 20 base::DictionaryValue* dict = new base::DictionaryValue;
21 SetResult(dict);
23 22
24 result->SetString("IDR_CLOSE_DIALOG", 23 dict->SetString(
25 webui::GetBitmapDataUrlFromResource(IDR_CLOSE_DIALOG)); 24 "window-title",
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)); 25 l10n_util::GetStringUTF16(IDS_EXTENSION_PERMISSIONS_PROMPT_TITLE));
33 26
34 SetResult(result);
35 return true; 27 return true;
36 } 28 }
37 29
38 } // namespace extensions 30 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698