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

Side by Side Diff: chrome/common/extensions/permissions/api_permission.cc

Issue 10829309: Remove background_alias_do_not_use_permission (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/common/extensions/permissions/api_permission.h" 5 #include "chrome/common/extensions/permissions/api_permission.h"
6 6
7 #include "chrome/common/extensions/permissions/permissions_info.h" 7 #include "chrome/common/extensions/permissions/permissions_info.h"
8 #include "grit/generated_resources.h" 8 #include "grit/generated_resources.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 10
11 namespace { 11 namespace {
12 12
13 const char kOldUnlimitedStoragePermission[] = "unlimited_storage"; 13 const char kOldUnlimitedStoragePermission[] = "unlimited_storage";
14 const char kWindowsPermission[] = "windows"; 14 const char kWindowsPermission[] = "windows";
15 const char kTemporaryBackgroundAlias[] = "background_alias_do_not_use";
16 15
17 } // namespace 16 } // namespace
18 17
19 namespace extensions { 18 namespace extensions {
20 19
21 // 20 //
22 // APIPermission 21 // APIPermission
23 // 22 //
24 23
25 APIPermission::~APIPermission() {} 24 APIPermission::~APIPermission() {}
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 const PermissionRegistration& pr = PermissionsToRegister[i]; 179 const PermissionRegistration& pr = PermissionsToRegister[i];
181 info->RegisterPermission( 180 info->RegisterPermission(
182 pr.id, pr.name, pr.l10n_message_id, 181 pr.id, pr.name, pr.l10n_message_id,
183 pr.message_id ? pr.message_id : PermissionMessage::kNone, 182 pr.message_id ? pr.message_id : PermissionMessage::kNone,
184 pr.flags); 183 pr.flags);
185 } 184 }
186 185
187 // Register aliases. 186 // Register aliases.
188 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission); 187 info->RegisterAlias("unlimitedStorage", kOldUnlimitedStoragePermission);
189 info->RegisterAlias("tabs", kWindowsPermission); 188 info->RegisterAlias("tabs", kWindowsPermission);
190 // TODO(mihaip): Should be removed for the M20 branch, see
191 // http://crbug.com/120447 for more details.
192 info->RegisterAlias("background", kTemporaryBackgroundAlias);
193 } 189 }
194 190
195 } // namespace extensions 191 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698