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

Issue 10703162: chromeos: Remove CryptohomeLibrary::TpmGetPassword and TpmIsReady (Closed)

Created:
8 years, 5 months ago by hashimoto
Modified:
8 years, 5 months ago
Reviewers:
stevenjb, Evan Stade
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

chromeos: Remove CryptohomeLibrary::TpmGetPassword and TpmIsReady Use CrypthomeClient instead. Also make the methods asynchronous at the same time. BUG=126674, 126719 TEST=Open chrome://cryptohome Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=147831

Patch Set 1 #

Patch Set 2 : Remove TpmIsReady #

Patch Set 3 : Fix chromium style error #

Total comments: 6

Patch Set 4 : rebase #

Total comments: 2

Patch Set 5 : rebase and add CryptohomeUI #

Total comments: 4

Patch Set 6 : rebase and fix clang error #

Patch Set 7 : Add cryptohome_web_ui_handler.cc/h #

Total comments: 2

Patch Set 8 : Rebase and review fix #

Total comments: 4

Patch Set 9 : rebase #

Patch Set 10 : More localized variables #

Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -138 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/cryptohome_library.h View 1 5 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/cros/cryptohome_library.cc View 1 5 4 chunks +0 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/login/tpm_password_fetcher.h View 1 2 3 4 5 6 3 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/tpm_password_fetcher.cc View 1 5 3 chunks +28 lines, -10 lines 0 comments Download
A chrome/browser/resources/chromeos/cryptohome.html View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/cryptohome.js View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/about_ui.cc View 1 2 3 4 5 5 chunks +0 lines, -67 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 3 chunks +3 lines, -1 line 0 comments Download
A chrome/browser/ui/webui/chromeos/cryptohome_ui.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/cryptohome_ui.cc View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.h View 1 2 3 4 5 6 7 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +88 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/dbus/cryptohome_client.h View 1 5 3 chunks +7 lines, -7 lines 0 comments Download
M chromeos/dbus/cryptohome_client.cc View 1 5 5 chunks +40 lines, -21 lines 0 comments Download
M chromeos/dbus/mock_cryptohome_client.h View 1 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
hashimoto
8 years, 5 months ago (2012-07-12 10:55:58 UTC) #1
stevenjb
lgtm, but I'd really like to see us follow up with crbug.com/126674 cleanup soon. http://codereview.chromium.org/10703162/diff/7002/chrome/browser/ui/webui/about_ui.cc ...
8 years, 5 months ago (2012-07-12 15:32:01 UTC) #2
hashimoto
Evan, could you review ui/webui/about_ui.cc as an owner? https://chromiumcodereview.appspot.com/10703162/diff/7002/chrome/browser/ui/webui/about_ui.cc File chrome/browser/ui/webui/about_ui.cc (right): https://chromiumcodereview.appspot.com/10703162/diff/7002/chrome/browser/ui/webui/about_ui.cc#newcode549 chrome/browser/ui/webui/about_ui.cc:549: // ...
8 years, 5 months ago (2012-07-13 04:27:21 UTC) #3
Evan Stade
http://codereview.chromium.org/10703162/diff/10002/chrome/browser/ui/webui/about_ui.cc File chrome/browser/ui/webui/about_ui.cc (right): http://codereview.chromium.org/10703162/diff/10002/chrome/browser/ui/webui/about_ui.cc#newcode1403 chrome/browser/ui/webui/about_ui.cc:1403: } // namespace wow. 1400 line unnamed namespace? html ...
8 years, 5 months ago (2012-07-13 05:58:46 UTC) #4
hashimoto
New patch set, added cryptohome_ui.cc. PTAL. http://codereview.chromium.org/10703162/diff/10002/chrome/browser/ui/webui/about_ui.cc File chrome/browser/ui/webui/about_ui.cc (right): http://codereview.chromium.org/10703162/diff/10002/chrome/browser/ui/webui/about_ui.cc#newcode1403 chrome/browser/ui/webui/about_ui.cc:1403: } // namespace ...
8 years, 5 months ago (2012-07-18 09:34:21 UTC) #5
Evan Stade
thanks! http://codereview.chromium.org/10703162/diff/15002/chrome/browser/ui/webui/chromeos/cryptohome_ui.cc File chrome/browser/ui/webui/chromeos/cryptohome_ui.cc (right): http://codereview.chromium.org/10703162/diff/15002/chrome/browser/ui/webui/chromeos/cryptohome_ui.cc#newcode36 chrome/browser/ui/webui/chromeos/cryptohome_ui.cc:36: CryptohomeWebUIHandler() : weak_ptr_factory_(this) {} this gets its own ...
8 years, 5 months ago (2012-07-19 01:53:16 UTC) #6
hashimoto
https://chromiumcodereview.appspot.com/10703162/diff/15002/chrome/browser/ui/webui/chromeos/cryptohome_ui.cc File chrome/browser/ui/webui/chromeos/cryptohome_ui.cc (right): https://chromiumcodereview.appspot.com/10703162/diff/15002/chrome/browser/ui/webui/chromeos/cryptohome_ui.cc#newcode36 chrome/browser/ui/webui/chromeos/cryptohome_ui.cc:36: CryptohomeWebUIHandler() : weak_ptr_factory_(this) {} On 2012/07/19 01:53:16, Evan Stade ...
8 years, 5 months ago (2012-07-19 07:14:54 UTC) #7
Evan Stade
> Does this make sense? yes, thanks for the explanation. I would say then that ...
8 years, 5 months ago (2012-07-19 22:54:41 UTC) #8
hashimoto
PTAL http://codereview.chromium.org/10703162/diff/21002/chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc File chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc (right): http://codereview.chromium.org/10703162/diff/21002/chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc#newcode94 chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc:94: SetCryptohomeStringProperty(destination_id, On 2012/07/19 22:54:41, Evan Stade wrote: > ...
8 years, 5 months ago (2012-07-20 10:54:28 UTC) #9
Evan Stade
lgtm http://codereview.chromium.org/10703162/diff/32001/chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc File chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc (right): http://codereview.chromium.org/10703162/diff/32001/chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc#newcode34 chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc:34: base::FundamentalValue is_mounted(cryptohome_library->IsMounted()); On 2012/07/20 10:54:28, hashimoto wrote: > ...
8 years, 5 months ago (2012-07-20 18:29:45 UTC) #10
hashimoto
http://codereview.chromium.org/10703162/diff/32001/chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc File chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc (right): http://codereview.chromium.org/10703162/diff/32001/chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc#newcode49 chrome/browser/ui/webui/chromeos/cryptohome_web_ui_handler.cc:49: std::string token_name; On 2012/07/20 18:29:45, Evan Stade wrote: > ...
8 years, 5 months ago (2012-07-23 04:33:24 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/10703162/22037
8 years, 5 months ago (2012-07-23 06:48:37 UTC) #12
commit-bot: I haz the power
8 years, 5 months ago (2012-07-23 07:41:41 UTC) #13
Try job failure for 10703162-22037 (retry) on mac_rel for step "browser_tests".
It's a second try, previously, step "browser_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698