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

Unified Diff: service/info/context.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Created 4 years, 4 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: service/info/context.go
diff --git a/service/info/context.go b/service/info/context.go
index ff5e30fa2a74349b04abfacb53fe1f39f02db1fe..131ef5f46555d0020b5b12d7818b20982420f7ce 100644
--- a/service/info/context.go
+++ b/service/info/context.go
@@ -33,8 +33,8 @@ func getUnfiltered(c context.Context) RawInterface {
return nil
}
-// Get gets the Interface implementation from context.
-func Get(c context.Context) Interface {
+// Raw returns the current filtered RawInterface installed in the Context.
+func Raw(c context.Context) RawInterface {
ret := getUnfiltered(c)
if ret == nil {
return nil
@@ -42,7 +42,7 @@ func Get(c context.Context) Interface {
for _, f := range getCurFilters(c) {
ret = f(c, ret)
}
- return infoImpl{ret}
+ return ret
}
// SetFactory sets the function to produce RawInterface instances, as returned

Powered by Google App Engine
This is Rietveld 408576698