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

Unified Diff: chrome/browser/chromeos/profiles/profile_helper.cc

Issue 2824923002: Suppress WebUSB notifications when appropriate (Closed)
Patch Set: Use new enums.xml file Created 3 years, 7 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 | « chrome/browser/chromeos/profiles/profile_helper.h ('k') | chrome/browser/usb/web_usb_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/profiles/profile_helper.cc
diff --git a/chrome/browser/chromeos/profiles/profile_helper.cc b/chrome/browser/chromeos/profiles/profile_helper.cc
index ce167e6e44e1025084ea0e8be232c59052a2f962..f6aef4d691095de65c867235f2dfbfb219ab4419 100644
--- a/chrome/browser/chromeos/profiles/profile_helper.cc
+++ b/chrome/browser/chromeos/profiles/profile_helper.cc
@@ -475,6 +475,10 @@ std::string ProfileHelper::GetUserIdHashByUserIdForTesting(
return user_id + kUserIdHashSuffix;
}
+void ProfileHelper::SetActiveUserIdForTesting(const std::string& user_id) {
+ active_user_id_hash_ = GetUserIdHashByUserIdForTesting(user_id);
+}
+
void ProfileHelper::FlushProfile(Profile* profile) {
if (!profile_flusher_)
profile_flusher_.reset(new FileFlusher);
« no previous file with comments | « chrome/browser/chromeos/profiles/profile_helper.h ('k') | chrome/browser/usb/web_usb_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698