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

Unified Diff: chrome/browser/profiles/profile.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase fix Created 9 years, 5 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/profiles/profile.cc
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
index 433cebf8f5cf847769628029832502ee8438f34c..933ffd10781b3be67a0480b8e84e8958e0ead3a7 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -100,6 +100,12 @@ Profile::Profile()
}
// static
+Profile* Profile::FromBrowserContext(content::BrowserContext* browser_context) {
+ // This is safe; this is the only implementation of the browser context.
+ return static_cast<Profile*>(browser_context);
+}
+
+// static
const char* const Profile::kProfileKey = "__PROFILE__";
#if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX)

Powered by Google App Engine
This is Rietveld 408576698