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

Unified Diff: components/webdata/common/web_data_results.h

Issue 1021043002: Make WDDestroyableResult<T> derive from WDResult<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webdata/common/web_data_results.h
diff --git a/components/webdata/common/web_data_results.h b/components/webdata/common/web_data_results.h
index 6d454335ce8b5927754b33c2d999a33af23be42e..23a2175b77a8f9e9afbb5ae17aa151c57b0faa95 100644
--- a/components/webdata/common/web_data_results.h
+++ b/components/webdata/common/web_data_results.h
@@ -81,14 +81,13 @@ template <class T> class WDResult : public WDTypedResult {
DISALLOW_COPY_AND_ASSIGN(WDResult);
};
-template <class T> class WDDestroyableResult : public WDTypedResult {
+template <class T> class WDDestroyableResult : public WDResult<T> {
public:
WDDestroyableResult(
WDResultType type,
const T& v,
const DestroyCallback& callback)
- : WDTypedResult(type),
- value_(v),
+ : WDResult<T>(type, v),
callback_(callback) {
}
@@ -102,13 +101,7 @@ template <class T> class WDDestroyableResult : public WDTypedResult {
}
}
- // Return a single value result.
- T GetValue() const {
- return value_;
- }
-
private:
- T value_;
DestroyCallback callback_;
DISALLOW_COPY_AND_ASSIGN(WDDestroyableResult);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698