| 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/system_indicator/system_indicator_handler
.h" | 5 #include "chrome/common/extensions/api/system_indicator/system_indicator_handler
.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 "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/common/extensions/api/extension_action/action_info.h" | 10 #include "chrome/common/extensions/api/extension_action/action_info.h" |
| 11 #include "chrome/common/extensions/extension.h" | 11 #include "extensions/common/extension.h" |
| 12 #include "chrome/common/extensions/permissions/permissions_data.h" | |
| 13 #include "extensions/common/manifest_constants.h" | 12 #include "extensions/common/manifest_constants.h" |
| 14 #include "extensions/common/permissions/api_permission_set.h" | 13 #include "extensions/common/permissions/api_permission_set.h" |
| 14 #include "extensions/common/permissions/permissions_data.h" |
| 15 | 15 |
| 16 namespace extensions { | 16 namespace extensions { |
| 17 | 17 |
| 18 SystemIndicatorHandler::SystemIndicatorHandler() { | 18 SystemIndicatorHandler::SystemIndicatorHandler() { |
| 19 } | 19 } |
| 20 | 20 |
| 21 SystemIndicatorHandler::~SystemIndicatorHandler() { | 21 SystemIndicatorHandler::~SystemIndicatorHandler() { |
| 22 } | 22 } |
| 23 | 23 |
| 24 bool SystemIndicatorHandler::Parse(Extension* extension, string16* error) { | 24 bool SystemIndicatorHandler::Parse(Extension* extension, string16* error) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 ActionInfo::SetSystemIndicatorInfo(extension, action_info.release()); | 43 ActionInfo::SetSystemIndicatorInfo(extension, action_info.release()); |
| 44 return true; | 44 return true; |
| 45 } | 45 } |
| 46 | 46 |
| 47 const std::vector<std::string> SystemIndicatorHandler::Keys() const { | 47 const std::vector<std::string> SystemIndicatorHandler::Keys() const { |
| 48 return SingleKey(manifest_keys::kSystemIndicator); | 48 return SingleKey(manifest_keys::kSystemIndicator); |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace extensions | 51 } // namespace extensions |
| OLD | NEW |