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

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

Issue 853743002: First pass at fixing guest browser cookies issue. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete the Profile Manager. Guest Profile doesn't write to autocomplete/history. Views still needs … Created 5 years, 10 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
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 e8fe488ba2d9c1184d8c19835a50ef3ba4bd4c9d..26c5af59fc0ef21caa5372d0d9b98bcc6f25cd4b 100644
--- a/chrome/browser/feedback/show_feedback_page.cc
+++ b/chrome/browser/feedback/show_feedback_page.cc
@@ -59,6 +59,10 @@ void ShowFeedbackPage(Browser* browser,
LOG(ERROR) << "Cannot invoke feedback: No profile found!";
return;
}
+ if (profile->IsGuestSession()) {
+ profile = g_browser_process->profile_manager()->
+ GetProfile(ProfileManager::GetSystemProfilePath());
+ }
// We do not want to launch on an OTR profile.
profile = profile->GetOriginalProfile();
« no previous file with comments | « chrome/browser/autocomplete/shortcuts_backend_factory.cc ('k') | chrome/browser/history/in_memory_url_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698