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

Issue 5939002: Error handling added (Closed)

Created:
10 years ago by glotov
Modified:
9 years, 7 months ago
CC:
chromium-reviews, nkostylev+cc_chromium.org, davemoore+watch_chromium.org, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comment update #

Patch Set 3 : InitSharedResource() and ReloadSharedResource() return code is checked #

Total comments: 12

Patch Set 4 : return code CHECK fixed #

Total comments: 16

Patch Set 5 : Nit comments fixed #

Patch Set 6 : Sync up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -13 lines) Patch
M chrome/app/chrome_main.cc View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/browser_main.cc View 1 2 3 4 5 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/browser_main_mac.mm View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/language_switch_menu.cc View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
glotov
10 years ago (2010-12-16 15:13:18 UTC) #1
Nikita (slow)
LGTM http://codereview.chromium.org/5939002/diff/1/chrome/browser/chromeos/login/language_switch_menu.cc File chrome/browser/chromeos/login/language_switch_menu.cc (right): http://codereview.chromium.org/5939002/diff/1/chrome/browser/chromeos/login/language_switch_menu.cc#newcode72 chrome/browser/chromeos/login/language_switch_menu.cc:72: // If locale cannot be found (probably user ...
10 years ago (2010-12-16 15:28:49 UTC) #2
Denis Lagno
> Would be helpful to understand why it's caused. This could be a bug here ...
10 years ago (2010-12-16 15:43:18 UTC) #3
glotov
Yes, I added logging, but is is unfortunately a little help because crash dumps contain ...
10 years ago (2010-12-17 19:59:23 UTC) #4
glotov
I added CHECK()-ing return codes for InitSharedResource() and ReloadSharedResource() so, if resource .pak is not ...
10 years ago (2010-12-20 13:36:38 UTC) #5
satorux1
The repeated crashes issue is 100% reproducible on my L13. Doesn't it reproducible on your ...
10 years ago (2010-12-20 14:38:58 UTC) #6
glotov
I ran on Mario and have not seen any crash like that. How do you ...
10 years ago (2010-12-20 15:18:35 UTC) #7
Peter Kasting
Note on my comments below: While in theory it's safe to do work in CHECK ...
10 years ago (2010-12-20 17:18:47 UTC) #8
satorux1
Nothing special. Just boot chromium os on L13. I just tested your patch, I'll write ...
10 years ago (2010-12-21 02:33:20 UTC) #9
satorux1
I meant crosbug.com/10437. Note that booting was not sufficient. You have to login first, then ...
10 years ago (2010-12-21 02:37:02 UTC) #10
satorux1
My bad. I was completely confused. The patch is nothing to do with the repeated ...
10 years ago (2010-12-21 03:33:34 UTC) #11
satorux1
Anyway, I tested this patch with L13, and here's the result: Chrome didn't boot and ...
10 years ago (2010-12-21 03:46:51 UTC) #12
satorux1
Changed to CHECK_EQ. |locale| appears to be empty, and InitSharedInstance(locale) returns "en-US". [1:1:12298789:FATAL:chrome/app/chrome_main.cc(852)] Check failed: ...
10 years ago (2010-12-21 04:44:18 UTC) #13
glotov
I fixed the comments, please have a look now. http://codereview.chromium.org/5939002/diff/10001/chrome/app/chrome_main.cc File chrome/app/chrome_main.cc (right): http://codereview.chromium.org/5939002/diff/10001/chrome/app/chrome_main.cc#newcode852 chrome/app/chrome_main.cc:852: ...
10 years ago (2010-12-21 13:19:07 UTC) #14
Peter Kasting
http://codereview.chromium.org/5939002/diff/25001/chrome/app/chrome_main.cc File chrome/app/chrome_main.cc (right): http://codereview.chromium.org/5939002/diff/25001/chrome/app/chrome_main.cc#newcode852 chrome/app/chrome_main.cc:852: const std::string res = ResourceBundle::InitSharedInstance(locale); Nit: |res| is a ...
10 years ago (2010-12-21 18:35:58 UTC) #15
glotov
http://codereview.chromium.org/5939002/diff/25001/chrome/app/chrome_main.cc File chrome/app/chrome_main.cc (right): http://codereview.chromium.org/5939002/diff/25001/chrome/app/chrome_main.cc#newcode852 chrome/app/chrome_main.cc:852: const std::string res = ResourceBundle::InitSharedInstance(locale); Agree, just wanted a ...
10 years ago (2010-12-21 20:33:34 UTC) #16
Peter Kasting
10 years ago (2010-12-21 21:44:05 UTC) #17
On 2010/12/21 20:33:34, glotov wrote:
> That was my mistake that time. No, we shouldn't. Because usually |locale| is
> empty, but InitSharedInstance("") will load the default locale then (and
return
> its name).

I see.  In that case, you might want your CHECK()s to print something like

CHECK(!loaded_locale.empty()) << (locale.empty() ? std::string("Default locale")
: ("Locale \"" + locale + "\"")) << " not found";

LGTM

Powered by Google App Engine
This is Rietveld 408576698