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

Unified Diff: chrome/browser/browser_main.cc

Issue 151061: Regression: task manager icon for chrome is blank... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | « no previous file | chrome/browser/views/frame/browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 19377)
+++ chrome/browser/browser_main.cc (working copy)
@@ -76,7 +76,6 @@
// progress and should not be taken as an indication of a real refactoring.
#if defined(OS_WIN)
-
#include <windows.h>
#include <commctrl.h>
#include <shellapi.h>
@@ -93,6 +92,7 @@
#include "chrome/browser/printing/print_job_manager.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/rlz/rlz.h"
+#include "chrome/browser/views/chrome_views_delegate.h"
#include "chrome/browser/views/user_data_dir_dialog.h"
#include "chrome/common/env_vars.h"
#include "chrome/installer/util/helper.h"
@@ -105,7 +105,6 @@
#include "net/http/http_network_layer.h"
#include "sandbox/src/sandbox.h"
#include "views/widget/accelerator_handler.h"
-
#endif // defined(OS_WIN)
#if defined(LINUX2)
@@ -381,8 +380,14 @@
// It is important for this to happen before the first run dialog, as it
// styles the dialog as well.
gtk_util::InitRCStyles();
+#elif defined(TOOLKIT_VIEWS)
+ // The delegate needs to be set before any UI is created so that windows
+ // display the correct icon.
+ if (!views::ViewsDelegate::views_delegate)
+ views::ViewsDelegate::views_delegate = new ChromeViewsDelegate;
#endif
+
#if defined(OS_POSIX)
// On Mac OS X / Linux we display the first run dialog as early as possible,
// so we can get the stats enabled.
« no previous file with comments | « no previous file | chrome/browser/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698