| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 bool FormIsHTTPS(FormStructure* form) { | 238 bool FormIsHTTPS(FormStructure* form) { |
| 239 return form->source_url().SchemeIs(chrome::kHttpsScheme); | 239 return form->source_url().SchemeIs(chrome::kHttpsScheme); |
| 240 } | 240 } |
| 241 | 241 |
| 242 // Check for unidentified forms among those with the most query or upload | 242 // Check for unidentified forms among those with the most query or upload |
| 243 // requests. If found, present an infobar prompting the user to send Google | 243 // requests. If found, present an infobar prompting the user to send Google |
| 244 // Feedback identifying these forms. Only executes if the appropriate flag is | 244 // Feedback identifying these forms. Only executes if the appropriate flag is |
| 245 // set in about:flags. | 245 // set in about:flags. |
| 246 const char* kPopularFormSignatures[] = { | 246 const char* kPopularFormSignatures[] = { |
| 247 "1730681123057140977", | |
| 248 "10135289994685082173", | 247 "10135289994685082173", |
| 249 "7883844738557049416", | 248 "7883844738557049416", |
| 250 "14651966297402649464", | 249 "14651966297402649464", |
| 251 "17177862793067325164", | 250 "17177862793067325164", |
| 252 "15222964025577790589", | 251 "15222964025577790589", |
| 253 "6231789373382218038", | |
| 254 "14138834153984647462", | 252 "14138834153984647462", |
| 255 "1522221299769735301", | 253 "1522221299769735301", |
| 256 "8604254969743383026", | 254 "8604254969743383026", |
| 257 "1080809576396139601", | 255 "1080809576396139601", |
| 258 "10157228556492868550", | |
| 259 "7112098130084740023", | |
| 260 "10591138561307360539", | 256 "10591138561307360539", |
| 261 "3483444043750493124", | 257 "3483444043750493124", |
| 262 "3764098888295731941", | 258 "3764098888295731941", |
| 263 "957190629194980629", | 259 "957190629194980629", |
| 264 "11314948061179499915", | 260 "11314948061179499915", |
| 265 "2226179674176240706", | 261 "2226179674176240706", |
| 266 "9886974103926218264", | 262 "9886974103926218264", |
| 267 "16089161644523512553", | 263 "16089161644523512553", |
| 268 "1366685796842051613", | |
| 269 "3683416168214161370", | |
| 270 "17395441333004474813", | 264 "17395441333004474813", |
| 271 "7131540066857838464", | 265 "7131540066857838464", |
| 272 "1799736626243038725", | 266 "1799736626243038725", |
| 273 "4314535457620699296", | 267 "4314535457620699296", |
| 274 "16597101416150066076", | 268 "16597101416150066076", |
| 275 "11571064402466920341", | 269 "11571064402466920341", |
| 276 "17529644200058912705", | 270 "17529644200058912705", |
| 277 "17442663271235869548", | 271 "17442663271235869548", |
| 278 "10423886468225016833", | 272 "10423886468225016833", |
| 279 "8205718441232482003", | 273 "8205718441232482003", |
| (...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1174 void AutofillManager::UnpackGUIDs(int id, | 1168 void AutofillManager::UnpackGUIDs(int id, |
| 1175 GUIDPair* cc_guid, | 1169 GUIDPair* cc_guid, |
| 1176 GUIDPair* profile_guid) { | 1170 GUIDPair* profile_guid) { |
| 1177 int cc_id = id >> std::numeric_limits<unsigned short>::digits & | 1171 int cc_id = id >> std::numeric_limits<unsigned short>::digits & |
| 1178 std::numeric_limits<unsigned short>::max(); | 1172 std::numeric_limits<unsigned short>::max(); |
| 1179 int profile_id = id & std::numeric_limits<unsigned short>::max(); | 1173 int profile_id = id & std::numeric_limits<unsigned short>::max(); |
| 1180 | 1174 |
| 1181 *cc_guid = IDToGUID(cc_id); | 1175 *cc_guid = IDToGUID(cc_id); |
| 1182 *profile_guid = IDToGUID(profile_id); | 1176 *profile_guid = IDToGUID(profile_id); |
| 1183 } | 1177 } |
| OLD | NEW |