| 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/chromeos/mobile_setup_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "base/metrics/histogram.h" | 21 #include "base/metrics/histogram.h" |
| 22 #include "base/strings/string_piece.h" | 22 #include "base/strings/string_piece.h" |
| 23 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
| 24 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
| 25 #include "base/values.h" | 25 #include "base/values.h" |
| 26 #include "chrome/browser/browser_process.h" | 26 #include "chrome/browser/browser_process.h" |
| 27 #include "chrome/browser/chromeos/mobile/mobile_activator.h" | 27 #include "chrome/browser/chromeos/mobile/mobile_activator.h" |
| 28 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
| 29 #include "chrome/browser/ui/browser_list.h" | 29 #include "chrome/browser/ui/browser_list.h" |
| 30 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
| 31 #include "chrome/grit/browser_resources.h" |
| 31 #include "chrome/grit/generated_resources.h" | 32 #include "chrome/grit/generated_resources.h" |
| 32 #include "chrome/grit/locale_settings.h" | 33 #include "chrome/grit/locale_settings.h" |
| 33 #include "chromeos/network/device_state.h" | 34 #include "chromeos/network/device_state.h" |
| 34 #include "chromeos/network/network_configuration_handler.h" | 35 #include "chromeos/network/network_configuration_handler.h" |
| 35 #include "chromeos/network/network_event_log.h" | 36 #include "chromeos/network/network_event_log.h" |
| 36 #include "chromeos/network/network_state.h" | 37 #include "chromeos/network/network_state.h" |
| 37 #include "chromeos/network/network_state_handler.h" | 38 #include "chromeos/network/network_state_handler.h" |
| 38 #include "chromeos/network/network_state_handler_observer.h" | 39 #include "chromeos/network/network_state_handler_observer.h" |
| 40 #include "components/strings/grit/components_strings.h" |
| 39 #include "content/public/browser/browser_thread.h" | 41 #include "content/public/browser/browser_thread.h" |
| 40 #include "content/public/browser/render_frame_host.h" | 42 #include "content/public/browser/render_frame_host.h" |
| 41 #include "content/public/browser/url_data_source.h" | 43 #include "content/public/browser/url_data_source.h" |
| 42 #include "content/public/browser/web_contents.h" | 44 #include "content/public/browser/web_contents.h" |
| 43 #include "content/public/browser/web_ui.h" | 45 #include "content/public/browser/web_ui.h" |
| 44 #include "content/public/browser/web_ui_message_handler.h" | 46 #include "content/public/browser/web_ui_message_handler.h" |
| 45 #include "grit/browser_resources.h" | |
| 46 #include "grit/components_strings.h" | |
| 47 #include "third_party/cros_system_api/dbus/service_constants.h" | 47 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 48 #include "ui/base/l10n/l10n_util.h" | 48 #include "ui/base/l10n/l10n_util.h" |
| 49 #include "ui/base/resource/resource_bundle.h" | 49 #include "ui/base/resource/resource_bundle.h" |
| 50 #include "ui/base/webui/jstemplate_builder.h" | 50 #include "ui/base/webui/jstemplate_builder.h" |
| 51 #include "ui/base/webui/web_ui_util.h" | 51 #include "ui/base/webui/web_ui_util.h" |
| 52 #include "url/gurl.h" | 52 #include "url/gurl.h" |
| 53 | 53 |
| 54 using chromeos::MobileActivator; | 54 using chromeos::MobileActivator; |
| 55 using chromeos::NetworkHandler; | 55 using chromeos::NetworkHandler; |
| 56 using chromeos::NetworkState; | 56 using chromeos::NetworkState; |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 int error_code, | 645 int error_code, |
| 646 const base::string16& error_description, | 646 const base::string16& error_description, |
| 647 bool was_ignored_by_handler) { | 647 bool was_ignored_by_handler) { |
| 648 if (render_frame_host->GetFrameName() != "paymentForm") | 648 if (render_frame_host->GetFrameName() != "paymentForm") |
| 649 return; | 649 return; |
| 650 | 650 |
| 651 base::FundamentalValue result_value(-error_code); | 651 base::FundamentalValue result_value(-error_code); |
| 652 web_ui()->CallJavascriptFunctionUnsafe(kJsPortalFrameLoadFailedCallback, | 652 web_ui()->CallJavascriptFunctionUnsafe(kJsPortalFrameLoadFailedCallback, |
| 653 result_value); | 653 result_value); |
| 654 } | 654 } |
| OLD | NEW |