| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/web_app.h" | 5 #include "chrome/browser/web_applications/web_app.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <ShellAPI.h> | 8 #include <ShellAPI.h> |
| 9 #endif // defined(OS_WIN) | 9 #endif // defined(OS_WIN) |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "chrome/common/notification_registrar.h" | 29 #include "chrome/common/notification_registrar.h" |
| 30 #include "chrome/common/notification_service.h" | 30 #include "chrome/common/notification_service.h" |
| 31 #include "chrome/common/url_constants.h" | 31 #include "chrome/common/url_constants.h" |
| 32 #include "webkit/glue/dom_operations.h" | 32 #include "webkit/glue/dom_operations.h" |
| 33 | 33 |
| 34 #if defined(OS_LINUX) | 34 #if defined(OS_LINUX) |
| 35 #include "base/linux_util.h" | 35 #include "base/linux_util.h" |
| 36 #endif // defined(OS_LINUX) | 36 #endif // defined(OS_LINUX) |
| 37 | 37 |
| 38 #if defined(OS_WIN) | 38 #if defined(OS_WIN) |
| 39 #include "app/gfx/icon_util.h" | |
| 40 #include "base/win_util.h" | 39 #include "base/win_util.h" |
| 40 #include "gfx/icon_util.h" |
| 41 #endif // defined(OS_WIN) | 41 #endif // defined(OS_WIN) |
| 42 | 42 |
| 43 namespace { | 43 namespace { |
| 44 | 44 |
| 45 const FilePath::CharType kIconChecksumFileExt[] = FILE_PATH_LITERAL(".ico.md5"); | 45 const FilePath::CharType kIconChecksumFileExt[] = FILE_PATH_LITERAL(".ico.md5"); |
| 46 | 46 |
| 47 // Returns true if |ch| is in visible ASCII range and not one of | 47 // Returns true if |ch| is in visible ASCII range and not one of |
| 48 // "/ \ : * ? " < > | ; ,". | 48 // "/ \ : * ? " < > | ; ,". |
| 49 bool IsValidFilePathChar(char16 c) { | 49 bool IsValidFilePathChar(char16 c) { |
| 50 if (c < 32) | 50 if (c < 32) |
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 | 739 |
| 740 void UpdateShortcutForTabContents(TabContents* tab_contents) { | 740 void UpdateShortcutForTabContents(TabContents* tab_contents) { |
| 741 #if defined(OS_WIN) | 741 #if defined(OS_WIN) |
| 742 // UpdateShortcutWorker will delete itself when it's done. | 742 // UpdateShortcutWorker will delete itself when it's done. |
| 743 UpdateShortcutWorker* worker = new UpdateShortcutWorker(tab_contents); | 743 UpdateShortcutWorker* worker = new UpdateShortcutWorker(tab_contents); |
| 744 worker->Run(); | 744 worker->Run(); |
| 745 #endif // defined(OS_WIN) | 745 #endif // defined(OS_WIN) |
| 746 } | 746 } |
| 747 | 747 |
| 748 }; // namespace web_app | 748 }; // namespace web_app |
| OLD | NEW |