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

Unified Diff: components/proximity_auth/screenlock_bridge.cc

Issue 2903353003: Adding mojo calls for easy unlock service (Closed)
Patch Set: comments and rebase Created 3 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
« no previous file with comments | « components/proximity_auth/screenlock_bridge.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/screenlock_bridge.cc
diff --git a/components/proximity_auth/screenlock_bridge.cc b/components/proximity_auth/screenlock_bridge.cc
index 891c9d1675f9718cd3055d9fdf5ec53e087c3275..f0cc8c40324756eb8236308f34ef0fda7a15459c 100644
--- a/components/proximity_auth/screenlock_bridge.cc
+++ b/components/proximity_auth/screenlock_bridge.cc
@@ -67,8 +67,7 @@ ScreenlockBridge::UserPodCustomIconOptions::~UserPodCustomIconOptions() {
std::unique_ptr<base::DictionaryValue>
ScreenlockBridge::UserPodCustomIconOptions::ToDictionaryValue() const {
auto result = base::MakeUnique<base::DictionaryValue>();
- std::string icon_id = GetIdForIcon(icon_);
- result->SetString("id", icon_id);
+ result->SetString("id", GetIDString());
if (!tooltip_.empty()) {
auto tooltip_options = base::MakeUnique<base::DictionaryValue>();
@@ -114,6 +113,10 @@ void ScreenlockBridge::UserPodCustomIconOptions::SetTrialRun() {
is_trial_run_ = true;
}
+std::string ScreenlockBridge::UserPodCustomIconOptions::GetIDString() const {
+ return GetIdForIcon(icon_);
+}
+
// static
ScreenlockBridge* ScreenlockBridge::Get() {
return g_screenlock_bridge_instance.Pointer();
« no previous file with comments | « components/proximity_auth/screenlock_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698