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

Unified Diff: chrome/browser/ui/views/extensions/bookmark_app_bubble_view.cc

Issue 1697263002: Remove HostDesktopType from some extensions files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-28
Patch Set: unused var Created 4 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
« no previous file with comments | « chrome/browser/extensions/bookmark_app_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/extensions/bookmark_app_bubble_view.cc
diff --git a/chrome/browser/ui/views/extensions/bookmark_app_bubble_view.cc b/chrome/browser/ui/views/extensions/bookmark_app_bubble_view.cc
index c04443c7fc436ae9beaa66e433f8eaca91cb4c44..1f058a8ae0eb274a6dc9337db3a0fe8cf7653514 100644
--- a/chrome/browser/ui/views/extensions/bookmark_app_bubble_view.cc
+++ b/chrome/browser/ui/views/extensions/bookmark_app_bubble_view.cc
@@ -261,15 +261,11 @@ void BookmarkAppBubbleView::UpdateAddButtonState() {
}
int BookmarkAppBubbleView::TitleStringId() {
- int string_id = IDS_ADD_TO_DESKTOP_BUBBLE_TITLE;
#if defined(USE_ASH)
- if (chrome::GetHostDesktopTypeForNativeWindow(
- anchor_widget()->GetNativeWindow()) ==
- chrome::HOST_DESKTOP_TYPE_ASH) {
- string_id = IDS_ADD_TO_SHELF_BUBBLE_TITLE;
- }
+ return IDS_ADD_TO_SHELF_BUBBLE_TITLE;
+#else
+ return IDS_ADD_TO_DESKTOP_BUBBLE_TITLE;
#endif
- return string_id;
}
base::string16 BookmarkAppBubbleView::GetTrimmedTitle() {
« no previous file with comments | « chrome/browser/extensions/bookmark_app_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698