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

Unified Diff: impl/prod/module.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: 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
Index: impl/prod/module.go
diff --git a/impl/prod/module.go b/impl/prod/module.go
index e34c880e09f0f9daa63460972c9b4130d607b5e9..30e7678e5bb8bb4d334893268fe1cf0ec39994d9 100644
--- a/impl/prod/module.go
+++ b/impl/prod/module.go
@@ -12,14 +12,13 @@ import (
// useModule adds a Module implementation to context.
func useModule(usrCtx context.Context) context.Context {
- return module.SetFactory(usrCtx, func(ci context.Context) module.Interface {
- return modImpl{ci, AEContext(ci)}
+ return module.SetFactory(usrCtx, func(ci context.Context) module.RawInterface {
+ return modImpl{AEContext(ci)}
})
}
type modImpl struct {
- usrCtx context.Context
- aeCtx context.Context
+ aeCtx context.Context
}
func (m modImpl) List() ([]string, error) {

Powered by Google App Engine
This is Rietveld 408576698