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

Issue 10827068: gdata: Fix "save as pdf" to work on Google Drive. (Closed)

Created:
8 years, 4 months ago by kinaba
Modified:
8 years, 4 months ago
CC:
chromium-reviews, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

gdata: Fix "save as pdf" to work on Google Drive in ChromeOS. BUG=137411 TEST=unit_tests --gtest_filter='*GDataFileWritingTest*' TEST=press Ctrl+P and then the save button, choose Google Drive, and verify it is correctly saved. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149799

Patch Set 1 : #

Patch Set 2 : Add mock method. #

Total comments: 12

Patch Set 3 : Just rebasing + minor fix (not for next round of review yet) #

Patch Set 4 : Split from GDataFileSystem, add test. #

Total comments: 6

Patch Set 5 : Rename to GDataFileWriteHelper.wq #

Patch Set 6 : Rebase + made header ordering correct. #

Total comments: 7

Patch Set 7 : Rename again, stick to UI thread. #

Total comments: 4

Patch Set 8 : Addressed comments from satorux. #

Total comments: 2

Patch Set 9 : Rebase + add bug id + drive-by comment typo fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -1 line) Patch
A chrome/browser/chromeos/gdata/file_write_helper.h View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/gdata/file_write_helper.cc View 1 2 3 4 5 6 1 chunk +96 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/gdata/file_write_helper_unittest.cc View 1 2 3 4 5 6 1 chunk +124 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_system_service.h View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_system_service.cc View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_util.h View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_util.cc View 1 2 3 4 5 6 7 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 4 5 6 7 8 4 chunks +32 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
kinaba
Satorux, I'd first like to ask if this approach is fine from GData side, can ...
8 years, 4 months ago (2012-07-27 10:22:07 UTC) #1
satorux1
http://codereview.chromium.org/10827068/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10827068/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode4200 chrome/browser/chromeos/gdata/gdata_file_system.cc:4200: GDataFileError result) { result -> error http://codereview.chromium.org/10827068/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode4207 chrome/browser/chromeos/gdata/gdata_file_system.cc:4207: base::Bind(callback, ...
8 years, 4 months ago (2012-07-27 22:56:29 UTC) #2
kinaba
http://codereview.chromium.org/10827068/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system_interface.h File chrome/browser/chromeos/gdata/gdata_file_system_interface.h (right): http://codereview.chromium.org/10827068/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system_interface.h#newcode186 chrome/browser/chromeos/gdata/gdata_file_system_interface.h:186: const OpenFileCallback& callback) = 0; On 2012/07/27 22:56:29, satorux1 ...
8 years, 4 months ago (2012-07-28 00:06:10 UTC) #3
satorux1
http://codereview.chromium.org/10827068/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system_interface.h File chrome/browser/chromeos/gdata/gdata_file_system_interface.h (right): http://codereview.chromium.org/10827068/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system_interface.h#newcode186 chrome/browser/chromeos/gdata/gdata_file_system_interface.h:186: const OpenFileCallback& callback) = 0; On 2012/07/28 00:06:10, kinaba ...
8 years, 4 months ago (2012-07-28 00:44:07 UTC) #4
kinaba
http://codereview.chromium.org/10827068/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10827068/diff/9001/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode4200 chrome/browser/chromeos/gdata/gdata_file_system.cc:4200: GDataFileError result) { On 2012/07/27 22:56:29, satorux1 wrote: > ...
8 years, 4 months ago (2012-08-01 13:48:45 UTC) #5
satorux1
http://codereview.chromium.org/10827068/diff/15009/chrome/browser/chromeos/gdata/gdata_file_writing.h File chrome/browser/chromeos/gdata/gdata_file_writing.h (right): http://codereview.chromium.org/10827068/diff/15009/chrome/browser/chromeos/gdata/gdata_file_writing.h#newcode18 chrome/browser/chromeos/gdata/gdata_file_writing.h:18: class GDataFileWriting { The class name looks rather unusual. ...
8 years, 4 months ago (2012-08-02 01:08:09 UTC) #6
kinaba
http://codereview.chromium.org/10827068/diff/15009/chrome/browser/chromeos/gdata/gdata_file_writing.h File chrome/browser/chromeos/gdata/gdata_file_writing.h (right): http://codereview.chromium.org/10827068/diff/15009/chrome/browser/chromeos/gdata/gdata_file_writing.h#newcode18 chrome/browser/chromeos/gdata/gdata_file_writing.h:18: class GDataFileWriting { On 2012/08/02 01:08:09, satorux1 wrote: > ...
8 years, 4 months ago (2012-08-02 04:57:31 UTC) #7
satorux1
http://codereview.chromium.org/10827068/diff/6021/chrome/browser/chromeos/gdata/gdata_file_write_helper.cc File chrome/browser/chromeos/gdata/gdata_file_write_helper.cc (right): http://codereview.chromium.org/10827068/diff/6021/chrome/browser/chromeos/gdata/gdata_file_write_helper.cc#newcode41 chrome/browser/chromeos/gdata/gdata_file_write_helper.cc:41: weak_ptr_factory_.GetWeakPtr(), ah, I was wrong. If you are to ...
8 years, 4 months ago (2012-08-02 06:56:53 UTC) #8
satorux1
http://codereview.chromium.org/10827068/diff/6021/chrome/browser/chromeos/gdata/gdata_file_write_helper.cc File chrome/browser/chromeos/gdata/gdata_file_write_helper.cc (right): http://codereview.chromium.org/10827068/diff/6021/chrome/browser/chromeos/gdata/gdata_file_write_helper.cc#newcode41 chrome/browser/chromeos/gdata/gdata_file_write_helper.cc:41: weak_ptr_factory_.GetWeakPtr(), On 2012/08/02 06:56:53, satorux1 wrote: > ah, I ...
8 years, 4 months ago (2012-08-02 06:59:15 UTC) #9
kinaba
http://codereview.chromium.org/10827068/diff/6021/chrome/browser/chromeos/gdata/gdata_file_write_helper.cc File chrome/browser/chromeos/gdata/gdata_file_write_helper.cc (right): http://codereview.chromium.org/10827068/diff/6021/chrome/browser/chromeos/gdata/gdata_file_write_helper.cc#newcode41 chrome/browser/chromeos/gdata/gdata_file_write_helper.cc:41: weak_ptr_factory_.GetWeakPtr(), On 2012/08/02 06:59:16, satorux1 wrote: > On 2012/08/02 ...
8 years, 4 months ago (2012-08-02 07:22:39 UTC) #10
satorux1
LGTM with nits http://codereview.chromium.org/10827068/diff/9/chrome/browser/chromeos/gdata/file_write_helper.h File chrome/browser/chromeos/gdata/file_write_helper.h (right): http://codereview.chromium.org/10827068/diff/9/chrome/browser/chromeos/gdata/file_write_helper.h#newcode50 chrome/browser/chromeos/gdata/file_write_helper.h:50: // WeakPtrFactory bound to the UI ...
8 years, 4 months ago (2012-08-02 07:37:51 UTC) #11
kinaba
http://codereview.chromium.org/10827068/diff/9/chrome/browser/chromeos/gdata/file_write_helper.h File chrome/browser/chromeos/gdata/file_write_helper.h (right): http://codereview.chromium.org/10827068/diff/9/chrome/browser/chromeos/gdata/file_write_helper.h#newcode50 chrome/browser/chromeos/gdata/file_write_helper.h:50: // WeakPtrFactory bound to the UI thread. On 2012/08/02 ...
8 years, 4 months ago (2012-08-02 08:30:02 UTC) #12
kinaba
brettw: I'd just like to ask your owner's stamp for file addition to chrome_{browser,tests}.gypi. abodenha: ...
8 years, 4 months ago (2012-08-02 09:13:58 UTC) #13
Albert Bodenhamer
print_preview_handler lgtm http://codereview.chromium.org/10827068/diff/10029/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): http://codereview.chromium.org/10827068/diff/10029/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode62 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:62: #ifdef OS_CHROMEOS Could you create a bug ...
8 years, 4 months ago (2012-08-02 16:20:59 UTC) #14
brettw
owners lgtm
8 years, 4 months ago (2012-08-02 18:17:14 UTC) #15
kinaba
Done. Thank you for reviewing. http://codereview.chromium.org/10827068/diff/10029/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): http://codereview.chromium.org/10827068/diff/10029/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode62 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:62: #ifdef OS_CHROMEOS On 2012/08/02 ...
8 years, 4 months ago (2012-08-03 05:19:49 UTC) #16
Albert Bodenhamer
8 years, 4 months ago (2012-08-05 02:54:53 UTC) #17
still lgtm


On Thu, Aug 2, 2012 at 10:19 PM, <kinaba@chromium.org> wrote:

> Done. Thank you for reviewing.
>
>
>
> http://codereview.chromium.**org/10827068/diff/10029/**
>
chrome/browser/ui/webui/print_**preview/print_preview_handler.**cc<http://codereview.chromium.org/10827068/diff/10029/chrome/browser/ui/webui/print_preview/print_preview_handler.cc>
> File chrome/browser/ui/webui/print_**preview/print_preview_handler.**cc
> (right):
>
> http://codereview.chromium.**org/10827068/diff/10029/**
> chrome/browser/ui/webui/print_**preview/print_preview_handler.**
>
cc#newcode62<http://codereview.chromium.org/10827068/diff/10029/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode62>
> chrome/browser/ui/webui/print_**preview/print_preview_handler.**cc:62:
> #ifdef OS_CHROMEOS
> On 2012/08/02 16:20:59, Albert Bodenhamer wrote:
>
>> Could you create a bug to unify/simplify the flow and add a TODO here
>>
> that
>
>> references it?
>>
>
> Done.
>
>
http://codereview.chromium.**org/10827068/<http://codereview.chromium.org/108...
>



-- 
Albert Bodenhamer | Software Engineer | abodenha@chromium.<abodenha@google.com>
org

Powered by Google App Engine
This is Rietveld 408576698