OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chromeos/charger_replacement_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/charger_replacement_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/prefs/pref_registry_simple.h" | 8 #include "base/prefs/pref_registry_simple.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/chromeos/charger_replace/charger_link_dialog.h" | 13 #include "chrome/browser/chromeos/charger_replace/charger_link_dialog.h" |
14 #include "chrome/browser/chromeos/charger_replace/charger_replacement_dialog.h" | 14 #include "chrome/browser/chromeos/charger_replace/charger_replacement_dialog.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
| 16 #include "chrome/grit/generated_resources.h" |
16 #include "content/public/browser/user_metrics.h" | 17 #include "content/public/browser/user_metrics.h" |
17 #include "content/public/browser/web_ui.h" | 18 #include "content/public/browser/web_ui.h" |
18 #include "grit/generated_resources.h" | |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 const char kFaqLink[] = "http://chromebook.com/hp11charger"; | 25 const char kFaqLink[] = "http://chromebook.com/hp11charger"; |
26 | 26 |
27 } // namespace | 27 } // namespace |
28 | 28 |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 dialog_->set_can_close(true); | 290 dialog_->set_can_close(true); |
291 } | 291 } |
292 | 292 |
293 void ChargerReplacementHandler::ShowLink(const base::ListValue* args) { | 293 void ChargerReplacementHandler::ShowLink(const base::ListValue* args) { |
294 std::string url = base::UTF16ToUTF8(ExtractStringValue(args)); | 294 std::string url = base::UTF16ToUTF8(ExtractStringValue(args)); |
295 ChargerLinkDialog* dialog = new ChargerLinkDialog(charger_window_, url); | 295 ChargerLinkDialog* dialog = new ChargerLinkDialog(charger_window_, url); |
296 dialog->Show(); | 296 dialog->Show(); |
297 } | 297 } |
298 | 298 |
299 } // namespace chromeos | 299 } // namespace chromeos |
OLD | NEW |