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

Issue 1719983005: base: Stop overloading ReadFileToString() (Closed)

Created:
4 years, 10 months ago by hashimoto
Modified:
4 years, 10 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, oshima+watch_chromium.org, tracing+reviews_chromium.org, darin (slow to review), ben+mojo_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Stop overloading ReadFileToString() With the existing code, base::Bind(&base::ReadFileToString) doesn't compile because the compiler cannot infer the argument's type (2-argument version or 3-argument version). base::Bind<bool(*)(const base::FilePath&, std::string*)>(&base::ReadFileToString) compiles but it doesn't look desirable. As our style guide discourages function overloading(*), rename the 3-argument version (added in http://crrev.com/157593005) to stop overloading. *https://google.github.io/styleguide/cppguide.html#Function_Overloading BUG=None TBR=sgurun@chromium.org for android_webview, derat@chromium.org for chromeos/accelerometer, bartfab@chromium.org for components/policy, dsinclair@chromium.org for components/tracing, estade@chromium.org for content/browser/webui, sergeyu@chromium.org for remoting Committed: https://crrev.com/6da2fef05a6d503710e5f9b6f1363d94eac7c633 Cr-Commit-Position: refs/heads/master@{#377209}

Patch Set 1 #

Patch Set 2 : Fix errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -31 lines) Patch
M android_webview/browser/aw_metrics_service_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M base/files/file_util.h View 1 chunk +3 lines, -3 lines 0 comments Download
M base/files/file_util.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M base/files/file_util_unittest.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/test_files_request_filter.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/ppapi/ppapi_filechooser_browsertest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chromeos/accelerometer/accelerometer_reader.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/cloud/user_cloud_policy_store.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M components/tracing/trace_config_file.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/webui/web_ui_mojo_browsertest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M remoting/host/setup/daemon_controller_delegate_win.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 18 (10 generated)
hashimoto
4 years, 10 months ago (2016-02-23 10:26:32 UTC) #6
Lei Zhang
lgtm
4 years, 10 months ago (2016-02-23 21:16:27 UTC) #7
hashimoto
TBRing following people: - sgurun@chromium.org for android_webview - derat@chromium.org for chromeos/accelerometer - bartfab@chromium.org for components/policy ...
4 years, 10 months ago (2016-02-24 02:25:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1719983005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1719983005/20001
4 years, 10 months ago (2016-02-24 03:28:16 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-24 03:40:07 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/6da2fef05a6d503710e5f9b6f1363d94eac7c633 Cr-Commit-Position: refs/heads/master@{#377209}
4 years, 10 months ago (2016-02-24 03:41:28 UTC) #16
Daniel Erat
lgtm
4 years, 10 months ago (2016-02-24 05:28:20 UTC) #17
bartfab (slow)
4 years, 10 months ago (2016-02-24 13:48:00 UTC) #18
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698