| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |