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

Unified Diff: components/keyed_service/ios/browser_state_helper.cc

Issue 799073007: Fix global variable name to follow style guide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/keyed_service/ios/browser_state_helper.cc
diff --git a/components/keyed_service/ios/browser_state_helper.cc b/components/keyed_service/ios/browser_state_helper.cc
index 50624449dd651d29ed5254f2262a62936de6b347..c8e39f8e2257163deeae4b43e5eb1b910fbdf05c 100644
--- a/components/keyed_service/ios/browser_state_helper.cc
+++ b/components/keyed_service/ios/browser_state_helper.cc
@@ -31,19 +31,19 @@
// to find the associated web::BrowserState (there is a 1:1 mapping).
namespace {
-BrowserStateFromContextFn gBrowserStateFromContext = nullptr;
+BrowserStateFromContextFn g_browser_state_from_context = nullptr;
} // namespace
void SetBrowserStateFromContextHelper(BrowserStateFromContextFn helper) {
- gBrowserStateFromContext = helper;
+ g_browser_state_from_context = helper;
}
web::BrowserState* BrowserStateFromContext(base::SupportsUserData* context) {
web::BrowserState* state = nullptr;
if (context) {
state = web::BrowserState::FromSupportsUserData(context);
- if (!state && gBrowserStateFromContext)
- state = gBrowserStateFromContext(context);
+ if (!state && g_browser_state_from_context)
+ state = g_browser_state_from_context(context);
DCHECK(state) << "cannot convert context to web::BrowserState";
}
return state;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698