| OLD | NEW |
| 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/gtk/create_application_shortcuts_dialog_gtk.h" | 5 #include "chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/environment.h" | 10 #include "base/environment.h" |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 } | 363 } |
| 364 | 364 |
| 365 CreateIconPixBuf(shortcut_info_.favicon); | 365 CreateIconPixBuf(shortcut_info_.favicon); |
| 366 CreateDialogBox(parent_); | 366 CreateDialogBox(parent_); |
| 367 } | 367 } |
| 368 | 368 |
| 369 void CreateChromeApplicationShortcutsDialogGtk::CreateDesktopShortcut( | 369 void CreateChromeApplicationShortcutsDialogGtk::CreateDesktopShortcut( |
| 370 const ShellIntegration::ShortcutInfo& shortcut_info) { | 370 const ShellIntegration::ShortcutInfo& shortcut_info) { |
| 371 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); | 371 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); |
| 372 | 372 |
| 373 if (web_app::CreateShortcutOnFileThread(profile_path_, shortcut_info)) { | 373 if (web_app::CreateShortcutsOnFileThread(shortcut_info)) { |
| 374 Release(); | 374 Release(); |
| 375 } else { | 375 } else { |
| 376 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, | 376 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, |
| 377 base::Bind(&CreateChromeApplicationShortcutsDialogGtk::ShowErrorDialog, | 377 base::Bind(&CreateChromeApplicationShortcutsDialogGtk::ShowErrorDialog, |
| 378 this)); | 378 this)); |
| 379 } | 379 } |
| 380 } | 380 } |
| OLD | NEW |