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

Unified Diff: impl/prod/info.go

Issue 2062613002: Add TrimmedAppID to info service. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Created 4 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
Index: impl/prod/info.go
diff --git a/impl/prod/info.go b/impl/prod/info.go
index 3709bf054939d073a5396411a6d11202cac16f03..a93e413af7fd401b563dc4917963ff942a1303c0 100644
--- a/impl/prod/info.go
+++ b/impl/prod/info.go
@@ -21,7 +21,7 @@ func useGI(usrCtx context.Context) context.Context {
usrCtx = withProbeCache(usrCtx, probe(AEContext(usrCtx)))
}
- return info.SetFactory(usrCtx, func(ci context.Context) info.Interface {
+ return info.SetFactory(usrCtx, func(ci context.Context) info.RawInterface {
return giImpl{ci, AEContext(ci)}
})
}
@@ -81,13 +81,6 @@ func (g giImpl) Namespace(namespace string) (context.Context, error) {
pc.namespace = &namespace
return withProbeCache(usrCtx, &pc), nil
}
-func (g giImpl) MustNamespace(ns string) context.Context {
- ret, err := g.Namespace(ns)
- if err != nil {
- panic(err)
- }
- return ret
-}
func (g giImpl) PublicCertificates() ([]info.Certificate, error) {
certs, err := appengine.PublicCertificates(g.aeCtx)
if err != nil {
« no previous file with comments | « impl/memory/info_test.go ('k') | service/info/context.go » ('j') | service/info/wrapper.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698