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

Side by Side Diff: chrome/common/extensions/background_info.cc

Issue 23744004: Move the rest of extension_manifest_constants to top-level extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 7 years, 3 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/common/extensions/background_info.h" 5 #include "chrome/common/extensions/background_info.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
14 #include "chrome/common/extensions/extension_file_util.h" 14 #include "chrome/common/extensions/extension_file_util.h"
15 #include "chrome/common/extensions/extension_manifest_constants.h"
16 #include "chrome/common/extensions/permissions/api_permission_set.h" 15 #include "chrome/common/extensions/permissions/api_permission_set.h"
17 #include "chrome/common/extensions/permissions/permissions_data.h" 16 #include "chrome/common/extensions/permissions/permissions_data.h"
18 #include "extensions/common/constants.h" 17 #include "extensions/common/constants.h"
19 #include "extensions/common/error_utils.h" 18 #include "extensions/common/error_utils.h"
19 #include "extensions/common/manifest_constants.h"
20 #include "grit/generated_resources.h" 20 #include "grit/generated_resources.h"
21 #include "ui/base/l10n/l10n_util.h" 21 #include "ui/base/l10n/l10n_util.h"
22 22
23 using base::DictionaryValue; 23 using base::DictionaryValue;
24 namespace keys = extensions::manifest_keys;
25 namespace values = extension_manifest_values;
26 namespace errors = extension_manifest_errors;
27 24
28 namespace extensions { 25 namespace extensions {
29 26
27 namespace keys = manifest_keys;
28 namespace values = manifest_values;
29 namespace errors = manifest_errors;
30
30 namespace { 31 namespace {
31 32
32 const char kBackground[] = "background"; 33 const char kBackground[] = "background";
33 34
34 static base::LazyInstance<BackgroundInfo> g_empty_background_info = 35 static base::LazyInstance<BackgroundInfo> g_empty_background_info =
35 LAZY_INSTANCE_INITIALIZER; 36 LAZY_INSTANCE_INITIALIZER;
36 37
37 const BackgroundInfo& GetBackgroundInfo(const Extension* extension) { 38 const BackgroundInfo& GetBackgroundInfo(const Extension* extension) {
38 BackgroundInfo* info = static_cast<BackgroundInfo*>( 39 BackgroundInfo* info = static_cast<BackgroundInfo*>(
39 extension->GetManifestData(kBackground)); 40 extension->GetManifestData(kBackground));
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 keys::kBackgroundPageLegacy, 310 keys::kBackgroundPageLegacy,
310 keys::kBackgroundPersistent, 311 keys::kBackgroundPersistent,
311 keys::kBackgroundScripts, 312 keys::kBackgroundScripts,
312 keys::kPlatformAppBackgroundPage, 313 keys::kPlatformAppBackgroundPage,
313 keys::kPlatformAppBackgroundScripts 314 keys::kPlatformAppBackgroundScripts
314 }; 315 };
315 return std::vector<std::string>(keys, keys + arraysize(keys)); 316 return std::vector<std::string>(keys, keys + arraysize(keys));
316 } 317 }
317 318
318 } // namespace extensions 319 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/url_handlers/url_handlers_parser.cc ('k') | chrome/common/extensions/command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698