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

Issue 1164823002: Remove URLRequestStatus mutators and introduce FromError. (Closed)

Created:
5 years, 6 months ago by davidben
Modified:
5 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, browser-components-watch_chromium.org, jam, darin-cc_chromium.org, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove URLRequestStatus mutators and introduce FromError. As the first step to folding URLRequestStatus into net errors, remove mutators so callers are required to specify status and error together. Also add a FromError function which sets the status field automatically. BUG=490309 Committed: https://crrev.com/e7938cf52a9aeb936c1cb005faaafb9f2b16cd4f Cr-Commit-Position: refs/heads/master@{#332625}

Patch Set 1 #

Total comments: 6

Patch Set 2 : mmenke comments, NET_EXPORT #

Patch Set 3 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -61 lines) Patch
M chrome/browser/autofill/autofill_interactive_uitest.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/translate/translate_browsertest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/translate/translate_manager_render_view_host_unittest.cc View 1 2 4 chunks +6 lines, -8 lines 0 comments Download
M components/domain_reliability/monitor_unittest.cc View 1 2 6 chunks +10 lines, -11 lines 0 comments Download
M components/domain_reliability/uploader_unittest.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/loader/redirect_to_file_resource_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/speech/google_one_shot_remote_engine_unittest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/speech/speech_recognizer_impl_unittest.cc View 3 chunks +4 lines, -10 lines 0 comments Download
M content/test/mock_google_streaming_server.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M net/net.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/url_request/url_request.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/url_request/url_request_status.h View 1 2 chunks +14 lines, -8 lines 0 comments Download
A net/url_request/url_request_status.cc View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
davidben
5 years, 6 months ago (2015-06-02 18:25:19 UTC) #2
mmenke
LGTM, just nits. https://codereview.chromium.org/1164823002/diff/1/chrome/browser/autofill/autofill_interactive_uitest.cc File chrome/browser/autofill/autofill_interactive_uitest.cc (right): https://codereview.chromium.org/1164823002/diff/1/chrome/browser/autofill/autofill_interactive_uitest.cc#newcode226 chrome/browser/autofill/autofill_interactive_uitest.cc:226: int error = success ? net::OK ...
5 years, 6 months ago (2015-06-02 18:41:33 UTC) #3
davidben
https://codereview.chromium.org/1164823002/diff/1/chrome/browser/autofill/autofill_interactive_uitest.cc File chrome/browser/autofill/autofill_interactive_uitest.cc (right): https://codereview.chromium.org/1164823002/diff/1/chrome/browser/autofill/autofill_interactive_uitest.cc#newcode226 chrome/browser/autofill/autofill_interactive_uitest.cc:226: int error = success ? net::OK : net::ERR_FAILED; On ...
5 years, 6 months ago (2015-06-02 19:19:42 UTC) #4
mmenke
https://codereview.chromium.org/1164823002/diff/1/chrome/browser/autofill/autofill_interactive_uitest.cc File chrome/browser/autofill/autofill_interactive_uitest.cc (right): https://codereview.chromium.org/1164823002/diff/1/chrome/browser/autofill/autofill_interactive_uitest.cc#newcode226 chrome/browser/autofill/autofill_interactive_uitest.cc:226: int error = success ? net::OK : net::ERR_FAILED; On ...
5 years, 6 months ago (2015-06-02 19:22:26 UTC) #5
davidben
+isherman for chrome/browser/autofill +hajimehoshi for chrome/browser/translate
5 years, 6 months ago (2015-06-02 20:37:13 UTC) #7
Ilya Sherman
autofill lgtm
5 years, 6 months ago (2015-06-02 22:03:51 UTC) #8
hajimehoshi
translate lgtm
5 years, 6 months ago (2015-06-03 03:49:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164823002/40001
5 years, 6 months ago (2015-06-03 15:33:54 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-03 16:24:11 UTC) #13
commit-bot: I haz the power
5 years, 6 months ago (2015-06-03 16:24:56 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e7938cf52a9aeb936c1cb005faaafb9f2b16cd4f
Cr-Commit-Position: refs/heads/master@{#332625}

Powered by Google App Engine
This is Rietveld 408576698