| Index: chrome/browser/web_applications/web_app.cc
|
| diff --git a/chrome/browser/web_applications/web_app.cc b/chrome/browser/web_applications/web_app.cc
|
| index a502b5a19a246437dccf06987fb726523fd8cc93..c2b2a3453ff1aa1e3b6f5531c73e451374b92a1d 100644
|
| --- a/chrome/browser/web_applications/web_app.cc
|
| +++ b/chrome/browser/web_applications/web_app.cc
|
| @@ -127,8 +127,18 @@ void CreateShortcut(
|
| BrowserThread::FILE,
|
| FROM_HERE,
|
| base::Bind(base::IgnoreResult(&CreateShortcutOnFileThread),
|
| - profile_path,
|
| - shortcut_info));
|
| + profile_path, shortcut_info));
|
| +}
|
| +
|
| +void DeleteAllShortcuts(const FilePath& profile_path,
|
| + const std::string& extension_id) {
|
| + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| +
|
| + BrowserThread::PostTask(
|
| + BrowserThread::FILE,
|
| + FROM_HERE,
|
| + base::Bind(&internals::DeletePlatformShortcuts, profile_path,
|
| + extension_id));
|
| }
|
|
|
| bool CreateShortcutOnFileThread(
|
|
|