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

Unified Diff: content/browser/browsing_instance.h

Issue 7492051: Revert 94332 - Removal of Profile from content part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_unittest.cc ('k') | content/browser/debugger/devtools_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browsing_instance.h
===================================================================
--- content/browser/browsing_instance.h (revision 94334)
+++ content/browser/browsing_instance.h (working copy)
@@ -8,6 +8,7 @@
#include "base/hash_tables.h"
#include "base/memory/ref_counted.h"
+#include "chrome/browser/profiles/profile.h"
class GURL;
class SiteInstance;
@@ -69,6 +70,12 @@
// Get the browser context to which this BrowsingInstance belongs.
content::BrowserContext* browser_context() { return browser_context_; }
+ // Returns the profile.
+ // TEMPORARY; http://crbug.com/76788
+ Profile* profile() {
+ return Profile::FromBrowserContext(browser_context());
+ }
+
// Returns whether this BrowsingInstance has registered a SiteInstance for
// the site of the given URL.
bool HasSiteInstance(const GURL& url);
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_unittest.cc ('k') | content/browser/debugger/devtools_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698