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

Issue 2704123007: mediaview: Fix ARC file system operation deferring. (Closed)

Created:
3 years, 10 months ago by Shuhei Takahashi
Modified:
3 years, 10 months ago
Reviewers:
hidehiko
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, tzik, hidehiko+watch_chromium.org, nhiroki, lhchavez+watch_chromium.org, oshima+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mediaview: Fix ARC file system operation deferring. After recent changes of ARC startup refactoring (crbug.com/657687), ARC file system operation deferring of media views was broken. Formerly ArcFileSystemOperationRunner was constructed in ArcServiceLauncher::Initialize(), which happens before a primary profile is created. Thus it was wrong to check ARC opt-in status in its constructor. Nevertheless it seemed to work because ArcFileSystemOperationRunner::OnArcPlayStoreEnabledChanged() was always called soon after login, which is no longer the case after the refactoring. This patch moves the construction of ArcFileSystemOperationRunner to ArcServiceLauncher::OnPrimaryUserProfilePrepared() and passes Profile to ArcFileSystemOperationRunner explicitly. Due to this change, ARC file operations issued before a primary profile gets ready are dropped, but we do not expect such operations. But just in case, we emit error logs in such cases. BUG=chromium:695358 BUG=chromium:657687 TEST=unit_tests TEST=No "operations are dropped" lines in /var/log/ui/ui.LATEST Review-Url: https://codereview.chromium.org/2704123007 Cr-Commit-Position: refs/heads/master@{#452441} Committed: https://chromium.googlesource.com/chromium/src/+/8514e79471d9dfa4a9376317b86f45b57e11eea6

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed hidehiko's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -12 lines) Patch
M chrome/browser/chromeos/arc/arc_service_launcher.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.h View 1 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc View 2 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.cc View 1 4 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Shuhei Takahashi
hidehiko: PTAL
3 years, 10 months ago (2017-02-23 08:19:04 UTC) #4
hidehiko
Sorry for the breakage and thank you very much for quick fix! https://codereview.chromium.org/2704123007/diff/1/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc File chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc ...
3 years, 10 months ago (2017-02-23 08:36:04 UTC) #8
Shuhei Takahashi
PTAL https://codereview.chromium.org/2704123007/diff/1/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc File chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc (right): https://codereview.chromium.org/2704123007/diff/1/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc#newcode45 chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc:45: bool observe_events) On 2017/02/23 08:36:04, hidehiko wrote: > ...
3 years, 10 months ago (2017-02-23 08:49:30 UTC) #11
hidehiko
LGTM!
3 years, 10 months ago (2017-02-23 08:52:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2704123007/20001
3 years, 10 months ago (2017-02-23 08:54:02 UTC) #14
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 09:30:39 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/8514e79471d9dfa4a9376317b86f...

Powered by Google App Engine
This is Rietveld 408576698