| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chrome/browser/web_applications/web_app_shortcuts_menu.h" |
| |
| #include "base/check.h" |
| #include "base/notreached.h" |
| #include "build/build_config.h" |
| |
| namespace web_app { |
| |
| #if !defined(OS_WIN) |
| bool ShouldRegisterShortcutsMenuWithOs() { |
| return false; |
| } |
| |
| void RegisterShortcutsMenuWithOs( |
| const AppId& app_id, |
| const base::FilePath& profile_path, |
| const base::FilePath& shortcut_data_dir, |
| const std::vector<WebApplicationShortcutsMenuItemInfo>& |
| shortcuts_menu_item_infos, |
| const ShortcutsMenuIconBitmaps& shortcuts_menu_icon_bitmaps) { |
| NOTIMPLEMENTED(); |
| DCHECK(ShouldRegisterShortcutsMenuWithOs()); |
| } |
| |
| bool UnregisterShortcutsMenuWithOs(const AppId& app_id, |
| const base::FilePath& profile_path) { |
| NOTIMPLEMENTED(); |
| DCHECK(ShouldRegisterShortcutsMenuWithOs()); |
| |
| return true; |
| } |
| #endif // !defined(OS_WIN) |
| |
| } // namespace web_app |