OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <unistd.h> | 5 #include <unistd.h> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/environment.h" | 8 #include "base/environment.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 if (!AutoStart::AddApplication( | 72 if (!AutoStart::AddApplication( |
73 ShellIntegration::GetDesktopName(environment.get()), | 73 ShellIntegration::GetDesktopName(environment.get()), |
74 version_info->Name(), | 74 version_info->Name(), |
75 command_line, | 75 command_line, |
76 false)) { | 76 false)) { |
77 NOTREACHED() << "Failed to register launch on login."; | 77 NOTREACHED() << "Failed to register launch on login."; |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 void BackgroundModeManager::DisplayAppInstalledNotification( | 81 void BackgroundModeManager::DisplayAppInstalledNotification( |
82 const Extension* extension) { | 82 const Extension* extension, |
| 83 Profile* profile) { |
83 // TODO(atwilson): Display a platform-appropriate notification here. | 84 // TODO(atwilson): Display a platform-appropriate notification here. |
84 // http://crbug.com/74970 | 85 // http://crbug.com/74970 |
85 } | 86 } |
86 | 87 |
87 string16 BackgroundModeManager::GetPreferencesMenuLabel() { | 88 string16 BackgroundModeManager::GetPreferencesMenuLabel() { |
88 string16 result = gtk_util::GetStockPreferencesMenuLabel(); | 89 string16 result = gtk_util::GetStockPreferencesMenuLabel(); |
89 if (!result.empty()) | 90 if (!result.empty()) |
90 return result; | 91 return result; |
91 return l10n_util::GetStringUTF16(IDS_PREFERENCES); | 92 return l10n_util::GetStringUTF16(IDS_PREFERENCES); |
92 } | 93 } |
OLD | NEW |