| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/pending_extension_info.h" | 5 #include "chrome/browser/extensions/pending_extension_info.h" |
| 6 | 6 |
| 7 PendingExtensionInfo::PendingExtensionInfo( | 7 PendingExtensionInfo::PendingExtensionInfo( |
| 8 const std::string& id, |
| 8 const GURL& update_url, | 9 const GURL& update_url, |
| 9 const Version& version, | 10 const Version& version, |
| 10 ShouldAllowInstallPredicate should_allow_install, | 11 ShouldAllowInstallPredicate should_allow_install, |
| 11 bool is_from_sync, | 12 bool is_from_sync, |
| 12 bool install_silently, | 13 bool install_silently, |
| 13 extensions::Extension::Location install_source) | 14 extensions::Extension::Location install_source) |
| 14 : update_url_(update_url), | 15 : id_(id), |
| 16 update_url_(update_url), |
| 15 version_(version), | 17 version_(version), |
| 16 should_allow_install_(should_allow_install), | 18 should_allow_install_(should_allow_install), |
| 17 is_from_sync_(is_from_sync), | 19 is_from_sync_(is_from_sync), |
| 18 install_silently_(install_silently), | 20 install_silently_(install_silently), |
| 19 install_source_(install_source) {} | 21 install_source_(install_source) {} |
| 20 | 22 |
| 21 PendingExtensionInfo::PendingExtensionInfo() | 23 PendingExtensionInfo::PendingExtensionInfo() |
| 22 : update_url_(), | 24 : id_(""), |
| 25 update_url_(), |
| 23 should_allow_install_(NULL), | 26 should_allow_install_(NULL), |
| 24 is_from_sync_(true), | 27 is_from_sync_(true), |
| 25 install_silently_(false), | 28 install_silently_(false), |
| 26 install_source_(extensions::Extension::INVALID) {} | 29 install_source_(extensions::Extension::INVALID) {} |
| 30 |
| 31 bool PendingExtensionInfo::operator==(const PendingExtensionInfo& rhs) const { |
| 32 return id_ == rhs.id_; |
| 33 } |
| OLD | NEW |