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

Unified Diff: chrome/browser/dom_ui/dom_ui.cc

Issue 6260002: Fix chromium-os:10777 and other sync related crashes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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/dom_ui/dom_ui.cc
diff --git a/chrome/browser/dom_ui/dom_ui.cc b/chrome/browser/dom_ui/dom_ui.cc
index fdefd38b2c9d84ea6d7c2dc837528e40003f3d0a..eb6a609bfcf1daa67ccf1595e8a4d42ba756a4fc 100644
--- a/chrome/browser/dom_ui/dom_ui.cc
+++ b/chrome/browser/dom_ui/dom_ui.cc
@@ -131,6 +131,12 @@ Profile* DOMUI::GetProfile() const {
return tab_contents()->profile();
}
+Profile* DOMUI::GetOriginalProfile() const {
+ // Note: GetProfile() is virtual.
+ Profile* profile = GetProfile();
+ return profile ? profile->GetOriginalProfile() : NULL;
+}
+
// DOMUI, protected: ----------------------------------------------------------
void DOMUI::AddMessageHandler(DOMMessageHandler* handler) {

Powered by Google App Engine
This is Rietveld 408576698