ContextUtils.getApplicationContext should be used for all clients that require an application context rather than an activity or service.
Reasons:
- Webview requires a wrapped application context to be used at all times.
- Unintended memory leaks due to storing reference to non-application context.
Requirements:
- ContextUtils.initApplicationContext is called exactly once on every start-up path.
Comment 1 by wnwen@chromium.org
, Mar 27 2017