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

Unified Diff: impl/prod/user.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Lightning talk licenses. Created 4 years, 3 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 | « impl/prod/taskqueue.go ('k') | service/datastore/checkfilter.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/prod/user.go
diff --git a/impl/prod/user.go b/impl/prod/user.go
index f5bc5ca9fb0de16a97e32270f6064f78a5825c0b..d39f7a11c656f0264a0ff4614a4810e9ac88e5ef 100644
--- a/impl/prod/user.go
+++ b/impl/prod/user.go
@@ -11,9 +11,10 @@ import (
)
// useUser adds a user service implementation to context, accessible
-// by "github.com/luci/gae/service/user".Get(c)
+// by "github.com/luci/gae/service/user".Raw(c) or the exported user service
+// methods.
func useUser(c context.Context) context.Context {
- return gae_user.SetFactory(c, func(ci context.Context) gae_user.Interface {
+ return gae_user.SetFactory(c, func(ci context.Context) gae_user.RawInterface {
return userImpl{AEContext(ci)}
})
}
@@ -54,6 +55,6 @@ func (u userImpl) OAuthConsumerKey() (string, error) {
return user.OAuthConsumerKey(u.aeCtx)
}
-func (u userImpl) Testable() gae_user.Testable {
+func (u userImpl) GetTestable() gae_user.Testable {
return nil
}
« no previous file with comments | « impl/prod/taskqueue.go ('k') | service/datastore/checkfilter.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698