| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 ShellIntegration::ShortcutInfo::ShortcutInfo() | 29 ShellIntegration::ShortcutInfo::ShortcutInfo() |
| 30 : is_platform_app(false) { | 30 : is_platform_app(false) { |
| 31 } | 31 } |
| 32 | 32 |
| 33 ShellIntegration::ShortcutInfo::~ShortcutInfo() {} | 33 ShellIntegration::ShortcutInfo::~ShortcutInfo() {} |
| 34 | 34 |
| 35 ShellIntegration::ShortcutLocations::ShortcutLocations() | 35 ShellIntegration::ShortcutLocations::ShortcutLocations() |
| 36 : on_desktop(false), | 36 : on_desktop(false), |
| 37 in_applications_menu(false), | 37 in_applications_menu(false), |
| 38 in_quick_launch_bar(false) { | 38 in_quick_launch_bar(false), |
| 39 hidden(false) { |
| 39 } | 40 } |
| 40 | 41 |
| 41 static const struct ShellIntegration::AppModeInfo* gAppModeInfo = NULL; | 42 static const struct ShellIntegration::AppModeInfo* gAppModeInfo = NULL; |
| 42 | 43 |
| 43 // static | 44 // static |
| 44 void ShellIntegration::SetAppModeInfo(const struct AppModeInfo* info) { | 45 void ShellIntegration::SetAppModeInfo(const struct AppModeInfo* info) { |
| 45 gAppModeInfo = info; | 46 gAppModeInfo = info; |
| 46 } | 47 } |
| 47 | 48 |
| 48 // static | 49 // static |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 result = ShellIntegration::SetAsDefaultProtocolClientInteractive( | 290 result = ShellIntegration::SetAsDefaultProtocolClientInteractive( |
| 290 protocol_); | 291 protocol_); |
| 291 } | 292 } |
| 292 break; | 293 break; |
| 293 default: | 294 default: |
| 294 NOTREACHED(); | 295 NOTREACHED(); |
| 295 } | 296 } |
| 296 | 297 |
| 297 return result; | 298 return result; |
| 298 } | 299 } |
| OLD | NEW |