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

Side by Side Diff: chrome/browser/chromeos/login/google_authenticator.cc

Issue 6594063: Update a bunch of files to the new location of browser_thread.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/chromeos/login/google_authenticator.h" 5 #include "chrome/browser/chromeos/login/google_authenticator.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/sha2.h" 14 #include "base/sha2.h"
15 #include "base/string_util.h" 15 #include "base/string_util.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "base/third_party/nss/blapi.h" 17 #include "base/third_party/nss/blapi.h"
18 #include "base/third_party/nss/sha256.h" 18 #include "base/third_party/nss/sha256.h"
19 #include "chrome/browser/browser_thread.h"
20 #include "chrome/browser/chromeos/boot_times_loader.h" 19 #include "chrome/browser/chromeos/boot_times_loader.h"
21 #include "chrome/browser/chromeos/cros/cryptohome_library.h" 20 #include "chrome/browser/chromeos/cros/cryptohome_library.h"
22 #include "chrome/browser/chromeos/login/auth_response_handler.h" 21 #include "chrome/browser/chromeos/login/auth_response_handler.h"
23 #include "chrome/browser/chromeos/login/authentication_notification_details.h" 22 #include "chrome/browser/chromeos/login/authentication_notification_details.h"
24 #include "chrome/browser/chromeos/login/login_status_consumer.h" 23 #include "chrome/browser/chromeos/login/login_status_consumer.h"
25 #include "chrome/browser/chromeos/login/ownership_service.h" 24 #include "chrome/browser/chromeos/login/ownership_service.h"
26 #include "chrome/browser/chromeos/login/user_manager.h" 25 #include "chrome/browser/chromeos/login/user_manager.h"
27 #include "chrome/browser/profiles/profile.h" 26 #include "chrome/browser/profiles/profile.h"
28 #include "chrome/browser/profiles/profile_manager.h" 27 #include "chrome/browser/profiles/profile_manager.h"
29 #include "chrome/common/chrome_paths.h" 28 #include "chrome/common/chrome_paths.h"
30 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" 29 #include "chrome/common/net/gaia/gaia_auth_fetcher.h"
31 #include "chrome/common/net/gaia/gaia_constants.h" 30 #include "chrome/common/net/gaia/gaia_constants.h"
32 #include "chrome/common/notification_service.h" 31 #include "chrome/common/notification_service.h"
32 #include "content/browser/browser_thread.h"
33 #include "net/base/load_flags.h" 33 #include "net/base/load_flags.h"
34 #include "net/base/net_errors.h" 34 #include "net/base/net_errors.h"
35 #include "net/url_request/url_request_status.h" 35 #include "net/url_request/url_request_status.h"
36 #include "third_party/libjingle/source/talk/base/urlencode.h" 36 #include "third_party/libjingle/source/talk/base/urlencode.h"
37 37
38 using base::Time; 38 using base::Time;
39 using base::TimeDelta; 39 using base::TimeDelta;
40 using file_util::GetFileSize; 40 using file_util::GetFileSize;
41 using file_util::PathExists; 41 using file_util::PathExists;
42 using file_util::ReadFile; 42 using file_util::ReadFile;
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 const unsigned int len) { 480 const unsigned int len) {
481 if (len < 2*binary_len) 481 if (len < 2*binary_len)
482 return false; 482 return false;
483 memset(hex_string, 0, len); 483 memset(hex_string, 0, len);
484 for (uint i = 0, j = 0; i < binary_len; i++, j+=2) 484 for (uint i = 0, j = 0; i < binary_len; i++, j+=2)
485 snprintf(hex_string + j, len - j, "%02x", binary[i]); 485 snprintf(hex_string + j, len - j, "%02x", binary[i]);
486 return true; 486 return true;
487 } 487 }
488 488
489 } // namespace chromeos 489 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/cryptohome_op.cc ('k') | chrome/browser/chromeos/login/help_app_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698