Chromium Code Reviews| 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/shell_integration.h" | 5 #include "chrome/browser/shell_integration.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 } | 32 } |
| 33 | 33 |
| 34 ShellIntegration::ShortcutInfo::ShortcutInfo() | 34 ShellIntegration::ShortcutInfo::ShortcutInfo() |
| 35 : is_platform_app(false) { | 35 : is_platform_app(false) { |
| 36 } | 36 } |
| 37 | 37 |
| 38 ShellIntegration::ShortcutInfo::~ShortcutInfo() {} | 38 ShellIntegration::ShortcutInfo::~ShortcutInfo() {} |
| 39 | 39 |
| 40 ShellIntegration::ShortcutLocations::ShortcutLocations() | 40 ShellIntegration::ShortcutLocations::ShortcutLocations() |
| 41 : on_desktop(false), | 41 : on_desktop(false), |
| 42 in_applications_menu(false), | 42 in_applications_menu(false), |
|
huangs
2013/05/15 02:33:46
in_application_menu_root
calamity
2013/08/27 07:59:35
Done.
| |
| 43 in_applications_menu_chrome_subdir(false), | |
| 44 in_applications_menu_chrome_apps_subdir(false), | |
| 43 in_quick_launch_bar(false), | 45 in_quick_launch_bar(false), |
| 44 hidden(false) { | 46 hidden(false) { |
| 45 } | 47 } |
| 46 | 48 |
| 47 static const struct ShellIntegration::AppModeInfo* gAppModeInfo = NULL; | 49 static const struct ShellIntegration::AppModeInfo* gAppModeInfo = NULL; |
| 48 | 50 |
| 49 // static | 51 // static |
| 50 void ShellIntegration::SetAppModeInfo(const struct AppModeInfo* info) { | 52 void ShellIntegration::SetAppModeInfo(const struct AppModeInfo* info) { |
| 51 gAppModeInfo = info; | 53 gAppModeInfo = info; |
| 52 } | 54 } |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 296 result = ShellIntegration::SetAsDefaultProtocolClientInteractive( | 298 result = ShellIntegration::SetAsDefaultProtocolClientInteractive( |
| 297 protocol_); | 299 protocol_); |
| 298 } | 300 } |
| 299 break; | 301 break; |
| 300 default: | 302 default: |
| 301 NOTREACHED(); | 303 NOTREACHED(); |
| 302 } | 304 } |
| 303 | 305 |
| 304 return result; | 306 return result; |
| 305 } | 307 } |
| OLD | NEW |