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

Unified Diff: chrome/browser/ui/views/apps/native_app_window_views.h

Issue 157813007: Remove Profile dependency from apps::ShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test 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: chrome/browser/ui/views/apps/native_app_window_views.h
diff --git a/chrome/browser/ui/views/apps/native_app_window_views.h b/chrome/browser/ui/views/apps/native_app_window_views.h
index 9934fa0fe782eb1440a92f9d26c1b7db7e99854c..4bd3fb6d0605135895df1da4ed5a31156c1462ff 100644
--- a/chrome/browser/ui/views/apps/native_app_window_views.h
+++ b/chrome/browser/ui/views/apps/native_app_window_views.h
@@ -29,13 +29,13 @@ class ImmersiveFullscreenController;
#endif
class ExtensionKeybindingRegistryViews;
-class Profile;
namespace apps {
class ShellWindowFrameView;
}
namespace content {
+class BrowserContext;
class RenderViewHost;
class WebContents;
}
@@ -76,7 +76,10 @@ class NativeAppWindowViews : public apps::NativeAppWindow,
virtual void Show() OVERRIDE;
virtual void Activate() OVERRIDE;
- Profile* profile() { return shell_window_->profile(); }
+ content::BrowserContext* browser_context() {
+ return shell_window_->browser_context();
+ }
+
const extensions::Extension* extension() {
return shell_window_->extension();
}

Powered by Google App Engine
This is Rietveld 408576698