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/ui/webui/help/version_updater_mac.h" | 5 #include "chrome/browser/ui/webui/help/version_updater_mac.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
11 #include "base/strings/stringprintf.h" | |
12 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
13 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
14 #import "chrome/browser/mac/keystone_glue.h" | 13 #import "chrome/browser/mac/keystone_glue.h" |
15 #include "chrome/browser/obsolete_system/obsolete_system.h" | 14 #include "chrome/browser/obsolete_system/obsolete_system.h" |
16 #include "chrome/grit/chromium_strings.h" | 15 #include "chrome/grit/chromium_strings.h" |
17 #include "chrome/grit/generated_resources.h" | 16 #include "chrome/grit/generated_resources.h" |
18 #include "net/base/escape.h" | 17 #include "net/base/escape.h" |
19 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
20 | 19 |
21 // KeystoneObserver is a simple notification observer for Keystone status | 20 // KeystoneObserver is a simple notification observer for Keystone status |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 } else if (recent_status == kAutoupdatePromoting || | 263 } else if (recent_status == kAutoupdatePromoting || |
265 recent_status == kAutoupdatePromoteFailed) { | 264 recent_status == kAutoupdatePromoteFailed) { |
266 // Show promotion UI because the user either just clicked that button or | 265 // Show promotion UI because the user either just clicked that button or |
267 // because the user should be able to click it again. | 266 // because the user should be able to click it again. |
268 show_promote_button_ = true; | 267 show_promote_button_ = true; |
269 } else { | 268 } else { |
270 // Show the promote button if promotion is a possibility. | 269 // Show the promote button if promotion is a possibility. |
271 show_promote_button_ = [keystone_glue wantsPromotion]; | 270 show_promote_button_ = [keystone_glue wantsPromotion]; |
272 } | 271 } |
273 } | 272 } |
OLD | NEW |