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

Unified Diff: chrome/browser/component_updater/component_updater_service.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
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_updater_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/component_updater_service.h
diff --git a/chrome/browser/component_updater/component_updater_service.h b/chrome/browser/component_updater/component_updater_service.h
index fe77d4e4927b7ca3f0f76a3e1548b57ffe58b460..fe6428d839cc3646be898b102945c9445ea981f1 100644
--- a/chrome/browser/component_updater/component_updater_service.h
+++ b/chrome/browser/component_updater/component_updater_service.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/gtest_prod_util.h"
+#include "base/memory/weak_ptr.h"
#include "base/version.h"
#include "url/gurl.h"
@@ -207,9 +208,8 @@ class ComponentUpdateService {
virtual ~ComponentUpdateService() {}
private:
- // Returns details about registered component. The object returned is owned
- // by this class. TODO(sorin): replace with a WeakPtr.
- virtual CrxUpdateItem* GetComponentDetails(
+ // Returns details about registered component.
+ virtual base::WeakPtr<CrxUpdateItem> GetComponentDetails(
cpu_(ooo_6.6-7.5) 2014/06/09 23:12:57 This sparked an interesting discussion among few f
const std::string& component_id) const = 0;
friend class ::ComponentsUI;
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_updater_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698