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

Unified Diff: trunk/src/chrome/browser/ui/gtk/apps/native_app_window_gtk.cc

Issue 163913004: Revert 250826 "Remove Profile dependency from apps::ShellWindow" (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/gtk/apps/native_app_window_gtk.cc
===================================================================
--- trunk/src/chrome/browser/ui/gtk/apps/native_app_window_gtk.cc (revision 251093)
+++ trunk/src/chrome/browser/ui/gtk/apps/native_app_window_gtk.cc (working copy)
@@ -146,7 +146,7 @@
// Add the keybinding registry.
extension_keybinding_registry_.reset(new ExtensionKeybindingRegistryGtk(
- Profile::FromBrowserContext(shell_window_->browser_context()),
+ shell_window_->profile(),
window_,
extensions::ExtensionKeybindingRegistry::PLATFORM_APPS_ONLY,
shell_window_));
@@ -624,8 +624,7 @@
}
void NativeAppWindowGtk::UpdateWindowIcon() {
- Profile* profile =
- Profile::FromBrowserContext(shell_window_->browser_context());
+ Profile* profile = shell_window_->profile();
gfx::Image app_icon = shell_window_->app_icon();
if (!app_icon.IsEmpty())
gtk_util::SetWindowIcon(window_, profile, app_icon.ToGdkPixbuf());

Powered by Google App Engine
This is Rietveld 408576698