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 13 matching lines...) Expand all Loading... |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
26 #include "base/values.h" | 26 #include "base/values.h" |
27 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
28 #include "chrome/browser/chromeos/mobile/mobile_activator.h" | 28 #include "chrome/browser/chromeos/mobile/mobile_activator.h" |
29 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
30 #include "chrome/browser/ui/browser_list.h" | 30 #include "chrome/browser/ui/browser_list.h" |
31 #include "chrome/common/url_constants.h" | 31 #include "chrome/common/url_constants.h" |
32 #include "chrome/grit/browser_resources.h" | 32 #include "chrome/grit/browser_resources.h" |
33 #include "chrome/grit/generated_resources.h" | 33 #include "chrome/grit/generated_resources.h" |
34 #include "chrome/grit/locale_settings.h" | |
35 #include "chromeos/network/device_state.h" | 34 #include "chromeos/network/device_state.h" |
36 #include "chromeos/network/network_configuration_handler.h" | 35 #include "chromeos/network/network_configuration_handler.h" |
37 #include "chromeos/network/network_event_log.h" | 36 #include "chromeos/network/network_event_log.h" |
38 #include "chromeos/network/network_state.h" | 37 #include "chromeos/network/network_state.h" |
39 #include "chromeos/network/network_state_handler.h" | 38 #include "chromeos/network/network_state_handler.h" |
40 #include "chromeos/network/network_state_handler_observer.h" | 39 #include "chromeos/network/network_state_handler_observer.h" |
41 #include "components/strings/grit/components_strings.h" | 40 #include "components/strings/grit/components_strings.h" |
42 #include "content/public/browser/browser_thread.h" | 41 #include "content/public/browser/browser_thread.h" |
43 #include "content/public/browser/navigation_handle.h" | 42 #include "content/public/browser/navigation_handle.h" |
44 #include "content/public/browser/render_frame_host.h" | 43 #include "content/public/browser/render_frame_host.h" |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 | 642 |
644 if (navigation_handle->IsErrorPage()) { | 643 if (navigation_handle->IsErrorPage()) { |
645 base::Value result_value(-navigation_handle->GetNetErrorCode()); | 644 base::Value result_value(-navigation_handle->GetNetErrorCode()); |
646 web_ui()->CallJavascriptFunctionUnsafe(kJsPortalFrameLoadFailedCallback, | 645 web_ui()->CallJavascriptFunctionUnsafe(kJsPortalFrameLoadFailedCallback, |
647 result_value); | 646 result_value); |
648 return; | 647 return; |
649 } | 648 } |
650 | 649 |
651 web_ui()->CallJavascriptFunctionUnsafe(kJsPortalFrameLoadCompletedCallback); | 650 web_ui()->CallJavascriptFunctionUnsafe(kJsPortalFrameLoadCompletedCallback); |
652 } | 651 } |
OLD | NEW |