Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Side by Side Diff: chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc

Issue 674273002: Cleanup: Remove unneeded chrome/common/pref_names.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/json/json_writer.h" 13 #include "base/json/json_writer.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/ref_counted_memory.h" 15 #include "base/memory/ref_counted_memory.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
18 #include "base/metrics/histogram.h" 18 #include "base/metrics/histogram.h"
19 #include "base/strings/string_piece.h" 19 #include "base/strings/string_piece.h"
20 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
21 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
22 #include "base/values.h" 22 #include "base/values.h"
23 #include "chrome/browser/chromeos/mobile/mobile_activator.h" 23 #include "chrome/browser/chromeos/mobile/mobile_activator.h"
24 #include "chrome/browser/profiles/profile.h" 24 #include "chrome/browser/profiles/profile.h"
25 #include "chrome/browser/ui/browser_list.h" 25 #include "chrome/browser/ui/browser_list.h"
26 #include "chrome/common/pref_names.h"
27 #include "chrome/common/render_messages.h" 26 #include "chrome/common/render_messages.h"
28 #include "chrome/common/url_constants.h" 27 #include "chrome/common/url_constants.h"
29 #include "chrome/grit/generated_resources.h" 28 #include "chrome/grit/generated_resources.h"
30 #include "chrome/grit/locale_settings.h" 29 #include "chrome/grit/locale_settings.h"
31 #include "chromeos/network/device_state.h" 30 #include "chromeos/network/device_state.h"
32 #include "chromeos/network/network_configuration_handler.h" 31 #include "chromeos/network/network_configuration_handler.h"
33 #include "chromeos/network/network_event_log.h" 32 #include "chromeos/network/network_event_log.h"
34 #include "chromeos/network/network_state.h" 33 #include "chromeos/network/network_state.h"
35 #include "chromeos/network/network_state_handler.h" 34 #include "chromeos/network/network_state_handler.h"
36 #include "chromeos/network/network_state_handler_observer.h" 35 #include "chromeos/network/network_state_handler_observer.h"
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 const GURL& validated_url, 649 const GURL& validated_url,
651 int error_code, 650 int error_code,
652 const base::string16& error_description) { 651 const base::string16& error_description) {
653 if (render_frame_host->GetFrameName() != "paymentForm") 652 if (render_frame_host->GetFrameName() != "paymentForm")
654 return; 653 return;
655 654
656 base::FundamentalValue result_value(-error_code); 655 base::FundamentalValue result_value(-error_code);
657 web_ui()->CallJavascriptFunction(kJsPortalFrameLoadFailedCallback, 656 web_ui()->CallJavascriptFunction(kJsPortalFrameLoadFailedCallback,
658 result_value); 657 result_value);
659 } 658 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698