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

Side by Side Diff: chrome/browser/autofill/autofill_manager.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/autofill/autofill_manager.h" 5 #include "chrome/browser/autofill/autofill_manager.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/autofill/autofill_dialog.h" 13 #include "chrome/browser/autofill/autofill_dialog.h"
13 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" 14 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h"
14 #include "chrome/browser/autofill/form_structure.h" 15 #include "chrome/browser/autofill/form_structure.h"
15 #include "chrome/browser/autofill/select_control_handler.h" 16 #include "chrome/browser/autofill/select_control_handler.h"
16 #include "chrome/browser/pref_service.h" 17 #include "chrome/browser/pref_service.h"
17 #include "chrome/browser/profile.h" 18 #include "chrome/browser/profile.h"
18 #include "chrome/browser/renderer_host/render_view_host.h" 19 #include "chrome/browser/renderer_host/render_view_host.h"
19 #include "chrome/browser/tab_contents/tab_contents.h" 20 #include "chrome/browser/tab_contents/tab_contents.h"
20 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
21 #include "chrome/common/pref_names.h" 22 #include "chrome/common/pref_names.h"
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 789
789 // When receiving IDs (across processes) from the renderer we unpack credit card 790 // When receiving IDs (across processes) from the renderer we unpack credit card
790 // and profile IDs from a single integer. Credit card IDs are stored in the 791 // and profile IDs from a single integer. Credit card IDs are stored in the
791 // high word and profile IDs are stored in the low word. 792 // high word and profile IDs are stored in the low word.
792 // static 793 // static
793 void AutoFillManager::UnpackIDs(int id, int* cc_id, int* profile_id) { 794 void AutoFillManager::UnpackIDs(int id, int* cc_id, int* profile_id) {
794 *cc_id = id >> std::numeric_limits<unsigned short>::digits & 795 *cc_id = id >> std::numeric_limits<unsigned short>::digits &
795 std::numeric_limits<unsigned short>::max(); 796 std::numeric_limits<unsigned short>::max();
796 *profile_id = id & std::numeric_limits<unsigned short>::max(); 797 *profile_id = id & std::numeric_limits<unsigned short>::max();
797 } 798 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_field_unittest.cc ('k') | chrome/browser/autofill/autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698