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

Side by Side Diff: components/proximity_auth/screenlock_bridge.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 4 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/proximity_auth/screenlock_bridge.h" 5 #include "components/proximity_auth/screenlock_bridge.h"
6 6
7 #include "base/strings/string16.h" 7 #include "base/strings/string16.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "components/proximity_auth/logging/logging.h" 9 #include "components/proximity_auth/logging/logging.h"
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 if (!aria_label_.empty()) 77 if (!aria_label_.empty())
78 result->SetString("ariaLabel", aria_label_); 78 result->SetString("ariaLabel", aria_label_);
79 79
80 if (hardlock_on_click_) 80 if (hardlock_on_click_)
81 result->SetBoolean("hardlockOnClick", true); 81 result->SetBoolean("hardlockOnClick", true);
82 82
83 if (is_trial_run_) 83 if (is_trial_run_)
84 result->SetBoolean("isTrialRun", true); 84 result->SetBoolean("isTrialRun", true);
85 85
86 return result.Pass(); 86 return result;
87 } 87 }
88 88
89 void ScreenlockBridge::UserPodCustomIconOptions::SetIcon( 89 void ScreenlockBridge::UserPodCustomIconOptions::SetIcon(
90 ScreenlockBridge::UserPodCustomIcon icon) { 90 ScreenlockBridge::UserPodCustomIcon icon) {
91 icon_ = icon; 91 icon_ = icon;
92 } 92 }
93 93
94 void ScreenlockBridge::UserPodCustomIconOptions::SetTooltip( 94 void ScreenlockBridge::UserPodCustomIconOptions::SetTooltip(
95 const base::string16& tooltip, 95 const base::string16& tooltip,
96 bool autoshow) { 96 bool autoshow) {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 observers_.RemoveObserver(observer); 175 observers_.RemoveObserver(observer);
176 } 176 }
177 177
178 ScreenlockBridge::ScreenlockBridge() 178 ScreenlockBridge::ScreenlockBridge()
179 : lock_handler_(nullptr), focused_account_id_(EmptyAccountId()) {} 179 : lock_handler_(nullptr), focused_account_id_(EmptyAccountId()) {}
180 180
181 ScreenlockBridge::~ScreenlockBridge() { 181 ScreenlockBridge::~ScreenlockBridge() {
182 } 182 }
183 183
184 } // namespace proximity_auth 184 } // namespace proximity_auth
OLDNEW
« no previous file with comments | « components/proximity_auth/remote_status_update.cc ('k') | components/proximity_auth/throttled_bluetooth_connection_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698