OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/manifest_handlers/linked_app_icons.h" | 5 #include "chrome/common/extensions/manifest_handlers/linked_app_icons.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.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 "extensions/common/manifest.h" | 10 #include "extensions/common/manifest.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 LinkedAppIcons::IconInfo::IconInfo() { | 31 LinkedAppIcons::IconInfo::IconInfo() { |
32 } | 32 } |
33 | 33 |
34 LinkedAppIcons::IconInfo::~IconInfo() { | 34 LinkedAppIcons::IconInfo::~IconInfo() { |
35 } | 35 } |
36 | 36 |
37 LinkedAppIcons::LinkedAppIcons() { | 37 LinkedAppIcons::LinkedAppIcons() { |
38 } | 38 } |
39 | 39 |
| 40 LinkedAppIcons::LinkedAppIcons(const LinkedAppIcons& other) = default; |
| 41 |
40 LinkedAppIcons::~LinkedAppIcons() { | 42 LinkedAppIcons::~LinkedAppIcons() { |
41 } | 43 } |
42 | 44 |
43 // static | 45 // static |
44 const LinkedAppIcons& LinkedAppIcons::GetLinkedAppIcons( | 46 const LinkedAppIcons& LinkedAppIcons::GetLinkedAppIcons( |
45 const Extension* extension) { | 47 const Extension* extension) { |
46 return GetInfo(extension); | 48 return GetInfo(extension); |
47 } | 49 } |
48 | 50 |
49 LinkedAppIconsHandler::LinkedAppIconsHandler() { | 51 LinkedAppIconsHandler::LinkedAppIconsHandler() { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 101 |
100 extension->SetManifestData(keys::kLinkedAppIcons, linked_app_icons.release()); | 102 extension->SetManifestData(keys::kLinkedAppIcons, linked_app_icons.release()); |
101 return true; | 103 return true; |
102 } | 104 } |
103 | 105 |
104 const std::vector<std::string> LinkedAppIconsHandler::Keys() const { | 106 const std::vector<std::string> LinkedAppIconsHandler::Keys() const { |
105 return SingleKey(keys::kLinkedAppIcons); | 107 return SingleKey(keys::kLinkedAppIcons); |
106 } | 108 } |
107 | 109 |
108 } // namespace extensions | 110 } // namespace extensions |
OLD | NEW |