| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "chrome/browser/extensions/pending_extension_info.h" | 6 #include "chrome/browser/extensions/pending_extension_info.h" |
| 7 #include "extensions/common/extension.h" | 7 #include "extensions/common/extension.h" |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace extensions { |
| 10 | 10 |
| 11 PendingExtensionInfo::PendingExtensionInfo( | 11 PendingExtensionInfo::PendingExtensionInfo( |
| 12 const std::string& id, | 12 const std::string& id, |
| 13 const std::string& install_parameter, | 13 const std::string& install_parameter, |
| 14 const GURL& update_url, | 14 const GURL& update_url, |
| 15 const Version& version, | 15 const base::Version& version, |
| 16 ShouldAllowInstallPredicate should_allow_install, | 16 ShouldAllowInstallPredicate should_allow_install, |
| 17 bool is_from_sync, | 17 bool is_from_sync, |
| 18 Manifest::Location install_source, | 18 Manifest::Location install_source, |
| 19 int creation_flags, | 19 int creation_flags, |
| 20 bool mark_acknowledged, | 20 bool mark_acknowledged, |
| 21 bool remote_install) | 21 bool remote_install) |
| 22 : id_(id), | 22 : id_(id), |
| 23 update_url_(update_url), | 23 update_url_(update_url), |
| 24 version_(version), | 24 version_(version), |
| 25 install_parameter_(install_parameter), | 25 install_parameter_(install_parameter), |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Different install sources; |this| has higher precedence if | 70 // Different install sources; |this| has higher precedence if |
| 71 // |install_source_| is the higher priority source. | 71 // |install_source_| is the higher priority source. |
| 72 Manifest::Location higher_priority_source = | 72 Manifest::Location higher_priority_source = |
| 73 Manifest::GetHigherPriorityLocation( | 73 Manifest::GetHigherPriorityLocation( |
| 74 install_source_, other.install_source_); | 74 install_source_, other.install_source_); |
| 75 | 75 |
| 76 return higher_priority_source == install_source_ ? 1 : -1; | 76 return higher_priority_source == install_source_ ? 1 : -1; |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace extensions | 79 } // namespace extensions |
| OLD | NEW |