OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/web_applications/update_shortcut_worker_win.h" | 5 #include "chrome/browser/web_applications/update_shortcut_worker_win.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
11 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 14 #include "base/macros.h" |
12 #include "base/path_service.h" | 15 #include "base/path_service.h" |
13 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
14 #include "base/win/shortcut.h" | 17 #include "base/win/shortcut.h" |
15 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
16 #include "chrome/browser/chrome_notification_types.h" | 19 #include "chrome/browser/chrome_notification_types.h" |
17 #include "chrome/browser/extensions/tab_helper.h" | 20 #include "chrome/browser/extensions/tab_helper.h" |
18 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/web_applications/web_app.h" | 22 #include "chrome/browser/web_applications/web_app.h" |
20 #include "chrome/browser/web_applications/web_app_win.h" | 23 #include "chrome/browser/web_applications/web_app_win.h" |
21 #include "components/favicon_base/select_favicon_frames.h" | 24 #include "components/favicon_base/select_favicon_frames.h" |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 base::Unretained(this))); | 241 base::Unretained(this))); |
239 } | 242 } |
240 } | 243 } |
241 | 244 |
242 void UpdateShortcutWorker::DeleteMeOnUIThread() { | 245 void UpdateShortcutWorker::DeleteMeOnUIThread() { |
243 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 246 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
244 delete this; | 247 delete this; |
245 } | 248 } |
246 | 249 |
247 } // namespace web_app | 250 } // namespace web_app |
OLD | NEW |