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

Unified Diff: chrome/browser/ui/webui/bug_report_ui.cc

Issue 7554008: Removal of Profile from content part 6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 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/ui/webui/bug_report_ui.cc
diff --git a/chrome/browser/ui/webui/bug_report_ui.cc b/chrome/browser/ui/webui/bug_report_ui.cc
index 871d7f157fd66bf72f2ec60e3d5f91aa0db68b21..934f934c642fa156e8966fa5e7b762f14486e3b3 100644
--- a/chrome/browser/ui/webui/bug_report_ui.cc
+++ b/chrome/browser/ui/webui/bug_report_ui.cc
@@ -541,8 +541,10 @@ void BugReportHandler::HandleSendReport(const ListValue* list_value) {
CancelFeedbackCollection();
#endif
+ Profile* profile =
+ Profile::FromBrowserContext(web_ui_->tab_contents()->browser_context());
// Update the data in bug_report_data_ so it can be sent
- bug_report_data_->UpdateData(web_ui_->GetProfile()
+ bug_report_data_->UpdateData(profile
, target_tab_url_
, problem_type
, page_url

Powered by Google App Engine
This is Rietveld 408576698