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

Unified Diff: chrome/browser/feedback/show_feedback_page.cc

Issue 1428213004: This CL replaces std::string user_id in ash/* with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 5 years, 1 month 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
Index: chrome/browser/feedback/show_feedback_page.cc
diff --git a/chrome/browser/feedback/show_feedback_page.cc b/chrome/browser/feedback/show_feedback_page.cc
index f70a83d0b3cccfa1d04d372d08b7b95eaf9cf6b8..6a5c8584344b19a8a92d1d43b208b0238cf2d3b9 100644
--- a/chrome/browser/feedback/show_feedback_page.cc
+++ b/chrome/browser/feedback/show_feedback_page.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
+#include "components/signin/core/account_id/account_id.h"
#include "content/public/browser/web_contents.h"
#include "url/gurl.h"
@@ -66,14 +67,14 @@ void ShowFeedbackPage(Browser* browser,
// Obtains the display profile ID on which the Feedback window should show.
chrome::MultiUserWindowManager* const window_manager =
chrome::MultiUserWindowManager::GetInstance();
- const std::string display_profile_id =
+ const AccountId display_account_id =
window_manager && browser
? window_manager->GetUserPresentingWindow(
browser->window()->GetNativeWindow())
- : "";
- profile = display_profile_id.empty()
- ? profile
- : multi_user_util::GetProfileFromUserID(display_profile_id);
+ : EmptyAccountId();
+ profile = display_account_id.is_valid()
+ ? multi_user_util::GetProfileFromAccountId(display_account_id)
+ : profile;
#endif
extensions::FeedbackPrivateAPI* api =

Powered by Google App Engine
This is Rietveld 408576698