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

Issue 735863002: Emit an error log line when attempting to connect to an app at an invalid URL. (Closed)

Created:
6 years, 1 month ago by azani
Modified:
6 years, 1 month ago
Reviewers:
Aaron Boodman, jamesr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Emit an error log line when attempting to connect to an app at an invalid URL. BUG=431955 R=aa@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/22190df420651906c772fe7bda993809d58bc1fd

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Update ApplicationManager::ConnectToApplication to take a string URL and its callers. #

Patch Set 4 : Check that specified URLs for applications are good. #

Total comments: 10

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M mojo/application_manager/application_manager.cc View 1 2 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download
M mojo/shell/desktop/mojo_main.cc View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M mojo/shell/dynamic_application_loader.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
azani
Not sure if this is the right approach. It does mean a non-cryptic error message ...
6 years, 1 month ago (2014-11-18 23:02:12 UTC) #2
Aaron Boodman
https://codereview.chromium.org/735863002/diff/20001/mojo/application_manager/application_manager.cc File mojo/application_manager/application_manager.cc (right): https://codereview.chromium.org/735863002/diff/20001/mojo/application_manager/application_manager.cc#newcode101 mojo/application_manager/application_manager.cc:101: GURL app_gurl(app_url.get()); If we were going to check the ...
6 years, 1 month ago (2014-11-19 20:29:28 UTC) #3
azani
https://codereview.chromium.org/735863002/diff/20001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/735863002/diff/20001/mojo/shell/dynamic_application_loader.cc#newcode168 mojo/shell/dynamic_application_loader.cc:168: // If the URL was not valid, it's not ...
6 years, 1 month ago (2014-11-19 23:08:54 UTC) #4
Aaron Boodman
In that case I guess just move the check to ApplicationManager::ConnectToApplication() and convert the url ...
6 years, 1 month ago (2014-11-20 01:01:57 UTC) #5
azani
On 2014/11/20 01:01:57, Aaron Boodman wrote: > In that case I guess just move the ...
6 years, 1 month ago (2014-11-20 19:15:58 UTC) #6
azani
Moved the checks out as discussed. PTAL.
6 years, 1 month ago (2014-11-20 21:24:41 UTC) #7
Aaron Boodman
https://codereview.chromium.org/735863002/diff/60001/mojo/application_manager/application_manager.cc File mojo/application_manager/application_manager.cc (right): https://codereview.chromium.org/735863002/diff/60001/mojo/application_manager/application_manager.cc#newcode104 mojo/application_manager/application_manager.cc:104: if (!app_gurl.is_valid() && app_gurl.possibly_invalid_spec().size() == 0) { This is ...
6 years, 1 month ago (2014-11-20 21:53:59 UTC) #8
azani
ptal https://codereview.chromium.org/735863002/diff/60001/mojo/application_manager/application_manager.cc File mojo/application_manager/application_manager.cc (right): https://codereview.chromium.org/735863002/diff/60001/mojo/application_manager/application_manager.cc#newcode104 mojo/application_manager/application_manager.cc:104: if (!app_gurl.is_valid() && app_gurl.possibly_invalid_spec().size() == 0) { On ...
6 years, 1 month ago (2014-11-20 22:10:03 UTC) #9
Aaron Boodman
https://codereview.chromium.org/735863002/diff/80001/mojo/shell/desktop/mojo_main.cc File mojo/shell/desktop/mojo_main.cc (right): https://codereview.chromium.org/735863002/diff/80001/mojo/shell/desktop/mojo_main.cc#newcode61 mojo/shell/desktop/mojo_main.cc:61: LOG(ERROR) << "Error: invalid URL: " << argv[0]; Add ...
6 years, 1 month ago (2014-11-20 22:16:03 UTC) #10
azani
ptal https://codereview.chromium.org/735863002/diff/80001/mojo/shell/desktop/mojo_main.cc File mojo/shell/desktop/mojo_main.cc (right): https://codereview.chromium.org/735863002/diff/80001/mojo/shell/desktop/mojo_main.cc#newcode61 mojo/shell/desktop/mojo_main.cc:61: LOG(ERROR) << "Error: invalid URL: " << argv[0]; ...
6 years, 1 month ago (2014-11-20 22:18:00 UTC) #11
Aaron Boodman
lgtm. make sure the tests pass locally before you land (we don't have try bots).
6 years, 1 month ago (2014-11-20 22:19:16 UTC) #12
azani
6 years, 1 month ago (2014-11-21 18:02:38 UTC) #13
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
22190df420651906c772fe7bda993809d58bc1fd (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698