Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / extensions / api / identity_private / identity_private_api.cc
blob5c0e7f19767d099b98fdfae1c59145ffe274477b
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.
5 #include "chrome/browser/extensions/api/identity_private/identity_private_api.h"
7 #include <string>
9 #include "base/values.h"
10 #include "chrome/grit/generated_resources.h"
11 #include "ui/base/l10n/l10n_util.h"
13 namespace extensions {
15 IdentityPrivateGetStringsFunction::IdentityPrivateGetStringsFunction() {}
17 IdentityPrivateGetStringsFunction::~IdentityPrivateGetStringsFunction() {}
19 bool IdentityPrivateGetStringsFunction::RunSync() {
20 base::DictionaryValue* dict = new base::DictionaryValue;
21 SetResult(dict);
23 dict->SetString(
24 "window-title",
25 l10n_util::GetStringUTF16(IDS_EXTENSION_CONFIRM_PERMISSIONS));
27 return true;
30 } // namespace extensions