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

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

Issue 468233004: Cleanup: Another round of removing unneeded grit #includes in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac, undo ui_localizer.mm Created 6 years, 4 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/login/hid_detection_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
17 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 17 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
18 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
19 #include "chromeos/chromeos_switches.h" 19 #include "chromeos/chromeos_switches.h"
20 #include "device/bluetooth/bluetooth_adapter_factory.h" 20 #include "device/bluetooth/bluetooth_adapter_factory.h"
21 #include "grit/chromium_strings.h"
22 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
23 #include "ui/base/l10n/l10n_util.h" 22 #include "ui/base/l10n/l10n_util.h"
24 23
25 namespace { 24 namespace {
26 25
27 const char kJsScreenPath[] = "login.HIDDetectionScreen"; 26 const char kJsScreenPath[] = "login.HIDDetectionScreen";
28 27
29 // Variants of pairing state. 28 // Variants of pairing state.
30 const char kRemotePinCode[] = "bluetoothRemotePinCode"; 29 const char kRemotePinCode[] = "bluetoothRemotePinCode";
31 const char kRemotePasskey[] = "bluetoothRemotePasskey"; 30 const char kRemotePasskey[] = "bluetoothRemotePasskey";
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 l10n_util::GetStringFUTF16( 582 l10n_util::GetStringFUTF16(
584 IDS_HID_DETECTION_PAIRED_BLUETOOTH_KEYBOARD, 583 IDS_HID_DETECTION_PAIRED_BLUETOOTH_KEYBOARD,
585 base::UTF8ToUTF16(keyboard_device_name_))); 584 base::UTF8ToUTF16(keyboard_device_name_)));
586 } else { 585 } else {
587 state_info.SetString("state", kUSBConnectedState); 586 state_info.SetString("state", kUSBConnectedState);
588 } 587 }
589 CallJS("setKeyboardDeviceState", state_info); 588 CallJS("setKeyboardDeviceState", state_info);
590 } 589 }
591 590
592 } // namespace chromeos 591 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698