Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: chrome/browser/extensions/pending_extension_info.h

Issue 9595001: Apps on NTP should be in order of installation (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: ExtensionInstallUI -> ExtensionInstallPrompt Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/pending_extension_info.h
diff --git a/chrome/browser/extensions/pending_extension_info.h b/chrome/browser/extensions/pending_extension_info.h
index 7af707446ff89151c14e362c03f9b8d968032b81..2b8eb00b443e91b64f5353a7d65c2750c0a56d07 100644
--- a/chrome/browser/extensions/pending_extension_info.h
+++ b/chrome/browser/extensions/pending_extension_info.h
@@ -21,6 +21,7 @@ class PendingExtensionInfo {
typedef bool (*ShouldAllowInstallPredicate)(const extensions::Extension&);
PendingExtensionInfo(
+ const std::string& id,
const GURL& update_url,
const Version& version,
ShouldAllowInstallPredicate should_allow_install,
@@ -31,6 +32,10 @@ class PendingExtensionInfo {
// Required for STL container membership. Should not be used directly.
PendingExtensionInfo();
+ // Consider two PendingExtensionInfos equal if their ids are equal.
+ bool operator==(const PendingExtensionInfo& rhs) const;
+
+ const std::string& id() const { return id_; }
const GURL& update_url() const { return update_url_; }
const Version& version() const { return version_; }
@@ -50,6 +55,8 @@ class PendingExtensionInfo {
}
private:
+ std::string id_;
+
GURL update_url_;
Version version_;
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/browser/extensions/pending_extension_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698