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

Unified Diff: ash/shell/shell_main.cc

Issue 9649013: Show a different icon in the launcher for incognito windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Re-upload Created 8 years, 9 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: ash/shell/shell_main.cc
diff --git a/ash/shell/shell_main.cc b/ash/shell/shell_main.cc
index 339010be4479e85d7eda694dd2ee20de1c4a0dd2..b56cfe0f1b2949972fc4c1b429cb077773509beb 100644
--- a/ash/shell/shell_main.cc
+++ b/ash/shell/shell_main.cc
@@ -76,7 +76,8 @@ class WindowWatcher : public aura::WindowObserver {
virtual void OnWindowAdded(aura::Window* new_window) OVERRIDE {
static int image_count = 0;
ash::LauncherModel* model = ash::Shell::GetInstance()->launcher()->model();
- ash::LauncherItem item(ash::TYPE_TABBED);
+ ash::LauncherItem item;
+ item.type = ash::TYPE_TABBED;
id_to_window_[model->next_id()] = new_window;
item.num_tabs = image_count + 1;
item.image.setConfig(SkBitmap::kARGB_8888_Config, 16, 16);
« no previous file with comments | « ash/launcher/tabbed_launcher_button.cc ('k') | chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698