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

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

Issue 12253022: Manifest handler for all keys background-related. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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) 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/api/extension_action/page_action_handler.h" 5 #include "chrome/common/extensions/api/extension_action/page_action_handler.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/common/extensions/extension.h" 9 #include "chrome/common/extensions/extension.h"
10 #include "chrome/common/extensions/extension_constants.h" 10 #include "chrome/common/extensions/extension_constants.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 page_action_info = manifest_handler_helpers::LoadActionInfo( 60 page_action_info = manifest_handler_helpers::LoadActionInfo(
61 extension, page_action_value, error); 61 extension, page_action_value, error);
62 if (!page_action_info) 62 if (!page_action_info)
63 return false; // Failed to parse page action definition. 63 return false; // Failed to parse page action definition.
64 } 64 }
65 ActionInfo::SetPageActionInfo(extension, page_action_info.release()); 65 ActionInfo::SetPageActionInfo(extension, page_action_info.release());
66 66
67 return true; 67 return true;
68 } 68 }
69 69
70 const std::vector<std::string> PageActionHandler::Keys() const {
71 std::vector<std::string> keys;
72 keys.push_back(keys::kPageAction);
73 keys.push_back(keys::kPageActions);
74 return keys;
75 }
76
70 } // namespace extensions 77 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698