| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/browser/safe_browsing/settings_reset_prompt/extension_info.h" | 5 #include "chrome/browser/safe_browsing/settings_reset_prompt/extension_info.h" |
| 6 | 6 |
| 7 #include "extensions/common/extension.h" | 7 #include "extensions/common/extension.h" |
| 8 | 8 |
| 9 namespace safe_browsing { | 9 namespace safe_browsing { |
| 10 | 10 |
| 11 ExtensionInfo::ExtensionInfo(const extensions::Extension* extension) { | 11 ExtensionInfo::ExtensionInfo(const extensions::Extension* extension) { |
| 12 DCHECK(extension); | 12 DCHECK(extension); |
| 13 id = extension->id(); | 13 id = extension->id(); |
| 14 name = extension->name(); | 14 name = extension->name(); |
| 15 } | 15 } |
| 16 | 16 |
| 17 ExtensionInfo::ExtensionInfo(const extensions::ExtensionId& id, |
| 18 const std::string& name) |
| 19 : id(id), name(name) {} |
| 20 |
| 17 ExtensionInfo::~ExtensionInfo() {} | 21 ExtensionInfo::~ExtensionInfo() {} |
| 18 | 22 |
| 19 } // namespace safe_browsing | 23 } // namespace safe_browsing |
| OLD | NEW |