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

Issue 10532048: [cros] Initial WebRTC-enabled implementation of user image picker on OOBE. (Closed)

Created:
8 years, 6 months ago by Ivan Korotkov
Modified:
8 years, 6 months ago
CC:
chromium-reviews, arv (Not doing code reviews), stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

[cros] Initial WebRTC-enabled implementation of user image picker on OOBE. BUG=122764 TEST=Manual with --enable-media-source --enable-new-oobe --enable-html5-camera Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141931

Patch Set 1 #

Total comments: 44

Patch Set 2 : Merge #

Patch Set 3 : Cleanup and addressed comments #

Total comments: 2

Patch Set 4 : Cleanup, camera pre-selection, addressed comments #

Patch Set 5 : Image decoding in worker process. #

Patch Set 6 : Revert web_ui_util changes #

Patch Set 7 : Camera polling and cleanup #

Patch Set 8 : Camera liveness check && fix user image grid item removal. #

Patch Set 9 : Comments #

Total comments: 6

Patch Set 10 : Merge #

Patch Set 11 : Cleanup #

Total comments: 12

Patch Set 12 : Fix ImageDecoder leak. #

Total comments: 4

Patch Set 13 : Fix ImageDecoder usage. #

Patch Set 14 : Revert ImageDecoder changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+659 lines, -15 lines) Patch
M chrome/browser/image_decoder.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/login.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/oobe.css View 1 2 3 4 5 6 7 8 9 1 chunk +78 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/oobe_screen_user_image.html View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe_screen_user_image.js View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +480 lines, -6 lines 0 comments Download
M chrome/browser/resources/chromeos/user_images_grid.js View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.h View 1 2 3 4 5 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +55 lines, -6 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Ivan Korotkov
PTAL This is a prototype, lacking: (*) detection of camera stream loss (*) animated capture ...
8 years, 6 months ago (2012-06-07 13:46:26 UTC) #1
Ivan Korotkov
Also, please, disregard changes in UserManager, they're for testing.
8 years, 6 months ago (2012-06-07 13:47:02 UTC) #2
Nikita (slow)
http://codereview.chromium.org/10532048/diff/1/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): http://codereview.chromium.org/10532048/diff/1/chrome/browser/chromeos/login/user_manager_impl.cc#newcode214 chrome/browser/chromeos/login/user_manager_impl.cc:214: if (command_line->HasSwitch(switches::kStubUser)) Please combine with condition above. It makes ...
8 years, 6 months ago (2012-06-07 15:26:54 UTC) #3
Nikita (slow)
http://codereview.chromium.org/10532048/diff/8016/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): http://codereview.chromium.org/10532048/diff/8016/chrome/common/chrome_switches.cc#newcode539 chrome/common/chrome_switches.cc:539: const char kEnableHtml5Camera[] = "enable-html5-camera"; Please flag to about:flags ...
8 years, 6 months ago (2012-06-09 09:23:43 UTC) #4
Nikita (slow)
http://codereview.chromium.org/10532048/diff/8016/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): http://codereview.chromium.org/10532048/diff/8016/chrome/common/chrome_switches.cc#newcode539 chrome/common/chrome_switches.cc:539: const char kEnableHtml5Camera[] = "enable-html5-camera"; On 2012/06/09 09:23:43, Nikita ...
8 years, 6 months ago (2012-06-09 09:29:01 UTC) #5
Ivan Korotkov
PTAL *) Moved image decoding to sandboxed worker (not sure if needed anyway...) *) Cleanup ...
8 years, 6 months ago (2012-06-09 14:19:01 UTC) #6
Ivan Korotkov
If not available, camera is now polled every N secs on image screen. N == ...
8 years, 6 months ago (2012-06-09 16:04:49 UTC) #7
Ivan Korotkov
Probably the last thing for this CL: added camera liveness check (will be removed if ...
8 years, 6 months ago (2012-06-09 16:27:51 UTC) #8
ygorshenin1
http://codereview.chromium.org/10532048/diff/34/chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc (right): http://codereview.chromium.org/10532048/diff/34/chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc#newcode22 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc:22: #include "googleurl/src/gurl.h" Sort, please. http://codereview.chromium.org/10532048/diff/34/chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc#newcode209 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc:209: DCHECK_EQ(mime_type, "image/png"); nit: ...
8 years, 6 months ago (2012-06-12 22:19:28 UTC) #9
Nikita (slow)
On 2012/06/09 16:04:49, Ivan Korotkov wrote: > If not available, camera is now polled every ...
8 years, 6 months ago (2012-06-13 10:28:56 UTC) #10
Ivan Korotkov
http://codereview.chromium.org/10532048/diff/34/chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc (right): http://codereview.chromium.org/10532048/diff/34/chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc#newcode22 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc:22: #include "googleurl/src/gurl.h" On 2012/06/12 22:19:28, ygorshenin1 wrote: > Sort, ...
8 years, 6 months ago (2012-06-13 14:02:23 UTC) #11
Nikita (slow)
http://codereview.chromium.org/10532048/diff/1/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): http://codereview.chromium.org/10532048/diff/1/chrome/browser/chromeos/login/user_manager_impl.cc#newcode214 chrome/browser/chromeos/login/user_manager_impl.cc:214: if (command_line->HasSwitch(switches::kStubUser)) On 2012/06/09 14:19:01, Ivan Korotkov wrote: > ...
8 years, 6 months ago (2012-06-13 14:07:35 UTC) #12
Nikita (slow)
http://codereview.chromium.org/10532048/diff/1020/chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc (right): http://codereview.chromium.org/10532048/diff/1020/chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc#newcode253 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc:253: screen_->OnPhotoTaken(user_photo_); Wrong comment. Correct one: accept_photo_after_decoding_ = false;
8 years, 6 months ago (2012-06-13 14:08:36 UTC) #13
Ivan Korotkov
http://codereview.chromium.org/10532048/diff/1020/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (left): http://codereview.chromium.org/10532048/diff/1020/chrome/browser/chromeos/login/user_manager_impl.cc#oldcode359 chrome/browser/chromeos/login/user_manager_impl.cc:359: is_current_user_ephemeral_ = true; On 2012/06/13 14:07:35, Nikita Kostylev wrote: ...
8 years, 6 months ago (2012-06-13 14:26:06 UTC) #14
Nikita (slow)
lgtm http://codereview.chromium.org/10532048/diff/10038/chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc (right): http://codereview.chromium.org/10532048/diff/10038/chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc#newcode47 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc:47: UserImageScreenHandler::~UserImageScreenHandler() { if (image_decoder_.get()) image_decoder_->set_delegate(NULL); http://codereview.chromium.org/10532048/diff/10038/chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc#newcode288 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc:288: image_decoder_.release(); ...
8 years, 6 months ago (2012-06-13 14:32:59 UTC) #15
Ivan Korotkov
http://codereview.chromium.org/10532048/diff/10038/chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc (right): http://codereview.chromium.org/10532048/diff/10038/chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc#newcode47 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc:47: UserImageScreenHandler::~UserImageScreenHandler() { On 2012/06/13 14:32:59, Nikita Kostylev wrote: > ...
8 years, 6 months ago (2012-06-13 14:40:55 UTC) #16
ygorshenin1
lgtm
8 years, 6 months ago (2012-06-13 14:41:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ivankr@chromium.org/10532048/3008
8 years, 6 months ago (2012-06-13 17:57:36 UTC) #18
commit-bot: I haz the power
8 years, 6 months ago (2012-06-13 19:22:04 UTC) #19
Change committed as 141931

Powered by Google App Engine
This is Rietveld 408576698