Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: chrome/browser/shell_integration.cc

Issue 12208085: On Linux, automatically create app shortcuts on install or update. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Work around obscure crash due to bug in glib <= 2.32. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/shell_integration.h ('k') | chrome/browser/shell_integration_linux.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration.h ('k') | chrome/browser/shell_integration_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698