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

Unified Diff: ash/shelf/shelf_util.cc

Issue 332163006: Manage settings window icon for multi profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browsertest Created 6 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 | « ash/shelf/shelf_util.h ('k') | chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_util.cc
diff --git a/ash/shelf/shelf_util.cc b/ash/shelf/shelf_util.cc
index af773b4bbccc3f1b7b759845a31276ee8a008ded..de5d3c793fd5ab2fdbcc97af1f99eb4248de87be 100644
--- a/ash/shelf/shelf_util.cc
+++ b/ash/shelf/shelf_util.cc
@@ -39,6 +39,16 @@ void SetShelfItemDetailsForWindow(aura::Window* window,
window->SetProperty(kShelfItemDetailsKey, item_details);
}
+void SetShelfItemDetailsForDialogWindow(aura::Window* window,
+ int image_resource_id) {
+ // |item_details| is owned by |window|.
+ ShelfItemDetails* item_details = new ShelfItemDetails;
+ item_details->type = TYPE_DIALOG;
+ item_details->image_resource_id = image_resource_id;
+ item_details->title = window->title();
+ window->SetProperty(kShelfItemDetailsKey, item_details);
+}
+
void ClearShelfItemDetailsForWindow(aura::Window* window) {
window->ClearProperty(kShelfItemDetailsKey);
}
« no previous file with comments | « ash/shelf/shelf_util.h ('k') | chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698