Commit 569336fe authored by Daniel Bratell's avatar Daniel Bratell Committed by Commit Bot

Inlined a GetLocalState() method

The GetLocalState() method in cryptauth clashes with another
GetLocalState() in jumbo builds, and since there is only one
caller off this one, it might as well be inlined.

Bug: 746957
Change-Id: I63e33c5c94930cd0dfeaa27c1421ce81c9865feb
Reviewed-on: https://chromium-review.googlesource.com/873922Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Daniel Bratell <bratell@opera.com>
Cr-Commit-Position: refs/heads/master@{#530357}
parent 2df043c4
...@@ -44,12 +44,10 @@ ...@@ -44,12 +44,10 @@
namespace { namespace {
PrefService* GetLocalState() {
return g_browser_process ? g_browser_process->local_state() : nullptr;
}
std::string GetDeviceId() { std::string GetDeviceId() {
PrefService* local_state = GetLocalState(); PrefService* local_state =
g_browser_process ? g_browser_process->local_state() : nullptr;
if (!local_state) if (!local_state)
return std::string(); return std::string();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment