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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 } | 80 } |
81 } | 81 } |
82 | 82 |
83 void BackgroundModeManager::DisplayAppInstalledNotification( | 83 void BackgroundModeManager::DisplayAppInstalledNotification( |
84 const Extension* extension) { | 84 const Extension* extension) { |
85 // TODO(atwilson): Display a platform-appropriate notification here. | 85 // TODO(atwilson): Display a platform-appropriate notification here. |
86 // http://crbug.com/74970 | 86 // http://crbug.com/74970 |
87 } | 87 } |
88 | 88 |
89 string16 BackgroundModeManager::GetPreferencesMenuLabel() { | 89 string16 BackgroundModeManager::GetPreferencesMenuLabel() { |
90 #if !defined(USE_AURA) | |
91 string16 result = gtk_util::GetStockPreferencesMenuLabel(); | 90 string16 result = gtk_util::GetStockPreferencesMenuLabel(); |
92 if (!result.empty()) | 91 if (!result.empty()) |
93 return result; | 92 return result; |
94 #endif | |
95 return l10n_util::GetStringUTF16(IDS_PREFERENCES); | 93 return l10n_util::GetStringUTF16(IDS_PREFERENCES); |
96 } | 94 } |
OLD | NEW |