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

Unified Diff: chrome/browser/component_updater/crx_update_item.h

Issue 318143003: Make CUS interface more resilient by returning a copy of the data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/component_updater/crx_update_item.h
diff --git a/chrome/browser/component_updater/crx_update_item.h b/chrome/browser/component_updater/crx_update_item.h
index cb7ac62246afd0b76c7883236acea41cdc72dbb4..274eed581472d973b4986ffbb7ce78c24810b5c8 100644
--- a/chrome/browser/component_updater/crx_update_item.h
+++ b/chrome/browser/component_updater/crx_update_item.h
@@ -55,7 +55,7 @@ class CUResourceThrottle;
// | error V |
// +------------------------------------------ kUpdating ->----+ success
//
-struct CrxUpdateItem {
+struct CrxUpdateItem : public base::SupportsWeakPtr<CrxUpdateItem> {
enum Status {
kNew,
kChecking,
@@ -125,6 +125,9 @@ struct CrxUpdateItem {
private:
const std::string& id_;
};
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CrxUpdateItem);
};
} // namespace component_updater

Powered by Google App Engine
This is Rietveld 408576698