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

Side by Side Diff: chrome/common/extensions/api/extension_action/action_info.cc

Issue 22794012: Rename extension_manifest_keys namespace to extensions::manifest_keys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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/api/extension_action/action_info.h" 5 #include "chrome/common/extensions/api/extension_action/action_info.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/common/extensions/api/commands/commands_handler.h" 9 #include "chrome/common/extensions/api/commands/commands_handler.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
11 #include "chrome/common/extensions/extension_manifest_constants.h" 11 #include "chrome/common/extensions/extension_manifest_constants.h"
12 #include "chrome/common/extensions/manifest_handler_helpers.h" 12 #include "chrome/common/extensions/manifest_handler_helpers.h"
13 #include "extensions/common/error_utils.h" 13 #include "extensions/common/error_utils.h"
14 14
15 namespace errors = extension_manifest_errors; 15 namespace errors = extension_manifest_errors;
16 namespace keys = extension_manifest_keys; 16 namespace keys = extensions::manifest_keys;
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 namespace { 20 namespace {
21 21
22 // The manifest data container for the ActionInfos for BrowserActions and 22 // The manifest data container for the ActionInfos for BrowserActions and
23 // ScriptBadges. 23 // ScriptBadges.
24 struct ActionInfoData : public Extension::ManifestData { 24 struct ActionInfoData : public Extension::ManifestData {
25 explicit ActionInfoData(ActionInfo* action_info); 25 explicit ActionInfoData(ActionInfo* action_info);
26 virtual ~ActionInfoData(); 26 virtual ~ActionInfoData();
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 // static 228 // static
229 bool ActionInfo::IsVerboseInstallMessage(const Extension* extension) { 229 bool ActionInfo::IsVerboseInstallMessage(const Extension* extension) {
230 const ActionInfo* page_action_info = GetPageActionInfo(extension); 230 const ActionInfo* page_action_info = GetPageActionInfo(extension);
231 return page_action_info && 231 return page_action_info &&
232 (CommandsInfo::GetPageActionCommand(extension) || 232 (CommandsInfo::GetPageActionCommand(extension) ||
233 !page_action_info->default_icon.empty()); 233 !page_action_info->default_icon.empty());
234 } 234 }
235 235
236 } // namespace extensions 236 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698