• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "ui/base/l10n/l10n_util.h"
12 
13 namespace extensions {
14 
IdentityPrivateGetStringsFunction()15 IdentityPrivateGetStringsFunction::IdentityPrivateGetStringsFunction() {}
16 
~IdentityPrivateGetStringsFunction()17 IdentityPrivateGetStringsFunction::~IdentityPrivateGetStringsFunction() {}
18 
RunSync()19 bool IdentityPrivateGetStringsFunction::RunSync() {
20   base::DictionaryValue* dict = new base::DictionaryValue;
21   SetResult(dict);
22 
23   dict->SetString(
24       "window-title",
25       l10n_util::GetStringUTF16(IDS_EXTENSION_PERMISSIONS_PROMPT_TITLE));
26 
27   return true;
28 }
29 
30 }  // namespace extensions
31