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

Unified Diff: trunk/src/chrome/browser/ui/apps/chrome_shell_window_delegate.h

Issue 164613002: Revert 251094 "Revert 250826 "Remove Profile dependency from app..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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: trunk/src/chrome/browser/ui/apps/chrome_shell_window_delegate.h
===================================================================
--- trunk/src/chrome/browser/ui/apps/chrome_shell_window_delegate.h (revision 251111)
+++ trunk/src/chrome/browser/ui/apps/chrome_shell_window_delegate.h (working copy)
@@ -7,12 +7,15 @@
#include "apps/shell_window.h"
#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_delegate.h"
#include "ui/base/window_open_disposition.h"
#include "ui/gfx/rect.h"
+namespace content {
+class BrowserContext;
+}
+
class ShellWindowLinkDelegate : public content::WebContentsDelegate {
public:
ShellWindowLinkDelegate();
@@ -40,10 +43,10 @@
apps::ShellWindow* window,
const apps::ShellWindow::CreateParams& params) OVERRIDE;
virtual content::WebContents* OpenURLFromTab(
- Profile* profile,
+ content::BrowserContext* context,
content::WebContents* source,
const content::OpenURLParams& params) OVERRIDE;
- virtual void AddNewContents(Profile* profile,
+ virtual void AddNewContents(content::BrowserContext* context,
content::WebContents* new_contents,
WindowOpenDisposition disposition,
const gfx::Rect& initial_pos,

Powered by Google App Engine
This is Rietveld 408576698