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

Issue 6930019: Added resources. (Closed)

Created:
9 years, 7 months ago by Albert Bodenhamer
Modified:
9 years, 7 months ago
Reviewers:
sanjeevr
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Added resources. Virtual_driver_setup now has localization support. All dlls and exes now have a version resource. Common (untranslated) strings are now pulled from a common resource file. Installer and port monitor now have separate .gyp files. Still to do: Integrate with TC and add all languages. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85825

Patch Set 1 #

Patch Set 2 : Fixed deps error #

Patch Set 3 : More work on l10n #

Patch Set 4 : Added common resources #

Patch Set 5 : Slight refactoring of LoadString #

Patch Set 6 : Fixed lint errors #

Total comments: 3

Patch Set 7 : Respond to feedback #

Total comments: 6

Patch Set 8 : More feedback #

Total comments: 1

Patch Set 9 : Fixed typo #

Patch Set 10 : Merge conflicts #

Patch Set 11 : Merge #

Patch Set 12 : Dealing with git stupidity #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -174 lines) Patch
M cloud_print/virtual_driver/virtual_driver.gyp View 1 chunk +8 lines, -97 lines 0 comments Download
A cloud_print/virtual_driver/win/install/DEPS View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M cloud_print/virtual_driver/win/install/setup.cc View 1 2 3 4 5 6 7 8 8 chunks +60 lines, -45 lines 0 comments Download
A cloud_print/virtual_driver/win/install/virtual_driver_install.gyp View 1 2 3 4 5 6 1 chunk +65 lines, -0 lines 0 comments Download
A cloud_print/virtual_driver/win/install/virtual_driver_setup_resources.grd View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
M cloud_print/virtual_driver/win/port_monitor/port_monitor.cc View 1 2 3 4 5 6 7 7 chunks +21 lines, -17 lines 0 comments Download
A cloud_print/virtual_driver/win/port_monitor/virtual_driver_port_monitor.gyp View 1 2 3 4 5 6 1 chunk +78 lines, -0 lines 0 comments Download
A cloud_print/virtual_driver/win/virtual_driver_common_resources.rc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +39 lines, -0 lines 0 comments Download
M cloud_print/virtual_driver/win/virtual_driver_consts.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -3 lines 0 comments Download
M cloud_print/virtual_driver/win/virtual_driver_consts.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -8 lines 0 comments Download
M cloud_print/virtual_driver/win/virtual_driver_helpers.h View 1 2 3 4 5 6 7 1 chunk +14 lines, -1 line 0 comments Download
M cloud_print/virtual_driver/win/virtual_driver_helpers.cc View 1 2 3 4 5 6 7 4 chunks +39 lines, -3 lines 0 comments Download
M tools/grit/resource_ids View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Albert Bodenhamer
Feel free to wait for Monday on this.
9 years, 7 months ago (2011-05-06 22:58:26 UTC) #1
sanjeevr
http://codereview.chromium.org/6930019/diff/11001/cloud_print/virtual_driver/win/install/setup.cc File cloud_print/virtual_driver/win/install/setup.cc (right): http://codereview.chromium.org/6930019/diff/11001/cloud_print/virtual_driver/win/install/setup.cc#newcode160 cloud_print/virtual_driver/win/install/setup.cc:160: cloud_print::LoadLocalString(IDS_XPS_DRIVER, buffer, MAX_PATH); Do the DLL names need to ...
9 years, 7 months ago (2011-05-09 19:39:11 UTC) #2
Albert Bodenhamer
On Mon, May 9, 2011 at 12:39 PM, <sanjeevr@chromium.org> wrote: > > > http://codereview.chromium.org/6930019/diff/11001/cloud_print/virtual_driver/win/install/setup.cc > ...
9 years, 7 months ago (2011-05-09 20:51:25 UTC) #3
sanjeevr
On 2011/05/09 20:51:25, Albert Bodenhamer wrote: > On Mon, May 9, 2011 at 12:39 PM, ...
9 years, 7 months ago (2011-05-09 21:37:59 UTC) #4
Albert Bodenhamer
Ok, give it another look. Rather than make 2 calls to LoadString to determine the ...
9 years, 7 months ago (2011-05-10 00:47:47 UTC) #5
sanjeevr
One final round of comments. http://codereview.chromium.org/6930019/diff/16001/cloud_print/virtual_driver/win/virtual_driver_helpers.cc File cloud_print/virtual_driver/win/virtual_driver_helpers.cc (right): http://codereview.chromium.org/6930019/diff/16001/cloud_print/virtual_driver/win/virtual_driver_helpers.cc#newcode85 cloud_print/virtual_driver/win/virtual_driver_helpers.cc:85: DCHECK_NE(0, count); Can you ...
9 years, 7 months ago (2011-05-10 16:18:47 UTC) #6
sanjeevr
LGTM
9 years, 7 months ago (2011-05-10 23:39:28 UTC) #7
sanjeevr
http://codereview.chromium.org/6930019/diff/22001/cloud_print/virtual_driver/win/install/setup.cc File cloud_print/virtual_driver/win/install/setup.cc (right): http://codereview.chromium.org/6930019/diff/22001/cloud_print/virtual_driver/win/install/setup.cc#newcode212 cloud_print/virtual_driver/win/install/setup.cc:212: HRESULT result = S_OK; This seems to be a ...
9 years, 7 months ago (2011-05-10 23:45:59 UTC) #8
Albert Bodenhamer
9 years, 7 months ago (2011-05-11 21:46:12 UTC) #9
Forgot to mail last comments.

http://codereview.chromium.org/6930019/diff/16001/cloud_print/virtual_driver/...
File cloud_print/virtual_driver/win/virtual_driver_helpers.cc (right):

http://codereview.chromium.org/6930019/diff/16001/cloud_print/virtual_driver/...
cloud_print/virtual_driver/win/virtual_driver_helpers.cc:85: DCHECK_NE(0,
count);
On 2011/05/10 16:18:47, sanjeevr wrote:
> Can you change the DCHECK to a CHECK? And also write a comment here saying we
> never expect the strings to be longer.

Done.

http://codereview.chromium.org/6930019/diff/16001/cloud_print/virtual_driver/...
File cloud_print/virtual_driver/win/virtual_driver_helpers.h (right):

http://codereview.chromium.org/6930019/diff/16001/cloud_print/virtual_driver/...
cloud_print/virtual_driver/win/virtual_driver_helpers.h:28: void
GetPortMonitorDllName(FilePath* path);
On 2011/05/10 16:18:47, sanjeevr wrote:
> Since this is just a name, I think you should return an std::string. Also
> returning it might make the calling code more readable than using an out
> argument.

Done.

http://codereview.chromium.org/6930019/diff/16001/cloud_print/virtual_driver/...
cloud_print/virtual_driver/win/virtual_driver_helpers.h:35: void
LoadLocalString(DWORD string_id, string16* target);
On 2011/05/10 16:18:47, sanjeevr wrote:
> Again, you could probably return the target instead of using an out argument.

Done.

Powered by Google App Engine
This is Rietveld 408576698