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

Side by Side Diff: chrome/browser/ui/views/create_application_shortcut_view.cc

Issue 10837034: Remove packaged app Windows shortcuts when app is uninstalled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android compile Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/create_application_shortcut_view.h" 5 #include "chrome/browser/ui/views/create_application_shortcut_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 #if defined(OS_WIN) 375 #if defined(OS_WIN)
376 shortcut_info_.create_in_quick_launch_bar = quick_launch_check_box_ == NULL ? 376 shortcut_info_.create_in_quick_launch_bar = quick_launch_check_box_ == NULL ?
377 NULL : quick_launch_check_box_->checked(); 377 NULL : quick_launch_check_box_->checked();
378 #elif defined(OS_POSIX) 378 #elif defined(OS_POSIX)
379 // Create shortcut in Mac dock or as Linux (gnome/kde) application launcher 379 // Create shortcut in Mac dock or as Linux (gnome/kde) application launcher
380 // are not implemented yet. 380 // are not implemented yet.
381 shortcut_info_.create_in_quick_launch_bar = false; 381 shortcut_info_.create_in_quick_launch_bar = false;
382 #endif 382 #endif
383 383
384 web_app::CreateShortcut(profile_->GetPath(), shortcut_info_); 384 web_app::CreateShortcuts(shortcut_info_);
385 return true; 385 return true;
386 } 386 }
387 387
388 388
389 views::View* CreateApplicationShortcutView::GetContentsView() { 389 views::View* CreateApplicationShortcutView::GetContentsView() {
390 return this; 390 return this;
391 } 391 }
392 392
393 views::Checkbox* CreateApplicationShortcutView::AddCheckbox( 393 views::Checkbox* CreateApplicationShortcutView::AddCheckbox(
394 const string16& text, bool checked) { 394 const string16& text, bool checked) {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 if (image.IsEmpty()) { 538 if (image.IsEmpty()) {
539 shortcut_info_.favicon = ui::ResourceBundle::GetSharedInstance(). 539 shortcut_info_.favicon = ui::ResourceBundle::GetSharedInstance().
540 GetImageNamed(IDR_APP_DEFAULT_ICON); 540 GetImageNamed(IDR_APP_DEFAULT_ICON);
541 } else { 541 } else {
542 shortcut_info_.favicon = image; 542 shortcut_info_.favicon = image;
543 } 543 }
544 544
545 CHECK(app_info_); 545 CHECK(app_info_);
546 static_cast<AppInfoView*>(app_info_)->UpdateIcon(shortcut_info_.favicon); 546 static_cast<AppInfoView*>(app_info_)->UpdateIcon(shortcut_info_.favicon);
547 } 547 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.cc ('k') | chrome/browser/ui/web_applications/web_app_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698