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

Issue 206713004: Report PPAPI plugin load error code to UMA. (Closed)

Created:
6 years, 9 months ago by xhwang
Modified:
6 years, 9 months ago
CC:
chromium-reviews, jar (doing other things), jam, joi+watch-content_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, erikwright+watch_chromium.org
Visibility:
Public.

Description

Report PPAPI plugin load error code to UMA. TBR=sky@chrmium.org BUG=353886 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259091

Patch Set 1 #

Total comments: 14

Patch Set 2 : comments addressed #

Total comments: 8

Patch Set 3 : comments addressed #

Total comments: 6

Patch Set 4 : Add NativeLibraryLoadError #

Total comments: 1

Patch Set 5 : Use std::string directly. #

Total comments: 8

Patch Set 6 : #

Patch Set 7 : Make NativeLibraryLoadError a class. #

Total comments: 2

Patch Set 8 : comments addressed #

Patch Set 9 : Fix Android. #

Total comments: 2

Patch Set 10 : Add GetError() #

Patch Set 11 : GetError() -> ToString() #

Patch Set 12 : Fix mojo example. #

Patch Set 13 : BASE_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -48 lines) Patch
M base/native_library.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +20 lines, -4 lines 0 comments Download
M base/native_library_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -1 line 0 comments Download
M base/native_library_posix.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -2 lines 0 comments Download
M base/native_library_win.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/load_library_perf_test.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/plugin/chrome_content_plugin_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_render_process_observer.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M content/child/npapi/plugin_lib.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/plugin_list_posix.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +26 lines, -8 lines 0 comments Download
M content/zygote/zygote_main_linux.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/pepper_container_app/plugin_module.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -4 lines 0 comments Download
M mojo/shell/app_child_process.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M mojo/shell/in_process_dynamic_service_runner.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/libjingle/overrides/init_webrtc.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +12 lines, -0 lines 0 comments Download
M ui/gl/gl_implementation_osmesa.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
xhwang
This is a prototype CL materializing what I mean in: https://code.google.com/p/chromium/issues/detail?id=353886#c4 brettw: I added you ...
6 years, 9 months ago (2014-03-20 21:40:02 UTC) #1
ddorwin
LG T M overall. https://codereview.chromium.org/206713004/diff/1/base/native_library.h File base/native_library.h (right): https://codereview.chromium.org/206713004/diff/1/base/native_library.h#newcode55 base/native_library.h:55: // If |error| is not ...
6 years, 9 months ago (2014-03-20 22:01:12 UTC) #2
xhwang
comments addressed
6 years, 9 months ago (2014-03-21 01:33:44 UTC) #3
xhwang
https://codereview.chromium.org/206713004/diff/1/base/native_library.h File base/native_library.h (right): https://codereview.chromium.org/206713004/diff/1/base/native_library.h#newcode55 base/native_library.h:55: // If |error| is not NULL, it may be ...
6 years, 9 months ago (2014-03-21 01:42:58 UTC) #4
xhwang
Add jar@chromium.org to review changes in UMA reporting: PTAL at content/ppapi_plugin/ppapi_thread.cc and tools/metrics/histograms/histograms.xml
6 years, 9 months ago (2014-03-21 01:44:38 UTC) #5
ddorwin
3 comments, one in previous PS. https://codereview.chromium.org/206713004/diff/1/base/native_library_win.cc File base/native_library_win.cc (right): https://codereview.chromium.org/206713004/diff/1/base/native_library_win.cc#newcode50 base/native_library_win.cc:50: std::string* /* error_message ...
6 years, 9 months ago (2014-03-21 04:20:05 UTC) #6
xhwang
comments addressed
6 years, 9 months ago (2014-03-21 17:09:05 UTC) #7
xhwang
https://codereview.chromium.org/206713004/diff/1/base/native_library_win.cc File base/native_library_win.cc (right): https://codereview.chromium.org/206713004/diff/1/base/native_library_win.cc#newcode50 base/native_library_win.cc:50: std::string* /* error_message */, On 2014/03/21 04:20:06, ddorwin wrote: ...
6 years, 9 months ago (2014-03-21 17:09:17 UTC) #8
jar (doing other things)
histograms.xml LGTM... with a nit below on the c++ side. https://codereview.chromium.org/206713004/diff/20001/content/ppapi_plugin/ppapi_thread.cc File content/ppapi_plugin/ppapi_thread.cc (right): https://codereview.chromium.org/206713004/diff/20001/content/ppapi_plugin/ppapi_thread.cc#newcode528 ...
6 years, 9 months ago (2014-03-21 17:21:55 UTC) #9
ddorwin
https://codereview.chromium.org/206713004/diff/40001/base/native_library_win.cc File base/native_library_win.cc (right): https://codereview.chromium.org/206713004/diff/40001/base/native_library_win.cc#newcode18 base/native_library_win.cc:18: NativeLibrary LoadNativeLibraryHelper(const FilePath& library_path, Not related to this CL, ...
6 years, 9 months ago (2014-03-21 17:24:59 UTC) #10
xhwang
ddorwin: I changed error_message/error_code to NativeLibraryLoadError which I feel is cleaner. Let me know what ...
6 years, 9 months ago (2014-03-21 19:00:54 UTC) #11
ddorwin
https://codereview.chromium.org/206713004/diff/50008/base/native_library.h File base/native_library.h (right): https://codereview.chromium.org/206713004/diff/50008/base/native_library.h#newcode54 base/native_library.h:54: typedef DWORD NativeLibraryLoadError; While more explicit about what to ...
6 years, 9 months ago (2014-03-21 20:06:32 UTC) #12
xhwang
https://codereview.chromium.org/206713004/diff/50008/base/native_library.h File base/native_library.h (right): https://codereview.chromium.org/206713004/diff/50008/base/native_library.h#newcode54 base/native_library.h:54: typedef DWORD NativeLibraryLoadError; On 2014/03/21 20:06:32, ddorwin wrote: > ...
6 years, 9 months ago (2014-03-21 22:33:28 UTC) #13
xhwang
brettw: I think this CL is ready for full review. Please compare PS3 and PS7. ...
6 years, 9 months ago (2014-03-21 22:41:15 UTC) #14
ddorwin
This LG with one suggestion. https://codereview.chromium.org/206713004/diff/150001/content/ppapi_plugin/ppapi_thread.cc File content/ppapi_plugin/ppapi_thread.cc (right): https://codereview.chromium.org/206713004/diff/150001/content/ppapi_plugin/ppapi_thread.cc#newcode524 content/ppapi_plugin/ppapi_thread.cc:524: void PpapiThread::ReportLoadErrorCode( Maybe comment ...
6 years, 9 months ago (2014-03-21 22:47:00 UTC) #15
xhwang
https://codereview.chromium.org/206713004/diff/150001/content/ppapi_plugin/ppapi_thread.cc File content/ppapi_plugin/ppapi_thread.cc (right): https://codereview.chromium.org/206713004/diff/150001/content/ppapi_plugin/ppapi_thread.cc#newcode524 content/ppapi_plugin/ppapi_thread.cc:524: void PpapiThread::ReportLoadErrorCode( On 2014/03/21 22:47:01, ddorwin wrote: > Maybe ...
6 years, 9 months ago (2014-03-21 23:02:04 UTC) #16
brettw
https://codereview.chromium.org/206713004/diff/210001/base/native_library.h File base/native_library.h (right): https://codereview.chromium.org/206713004/diff/210001/base/native_library.h#newcode94 base/native_library.h:94: BASE_EXPORT std::ostream& operator<<(std::ostream& out, The style guide permits operator<< ...
6 years, 9 months ago (2014-03-24 17:21:24 UTC) #17
xhwang
brettw: Comment addressed. PTAL again. Thanks! https://codereview.chromium.org/206713004/diff/210001/base/native_library.h File base/native_library.h (right): https://codereview.chromium.org/206713004/diff/210001/base/native_library.h#newcode94 base/native_library.h:94: BASE_EXPORT std::ostream& operator<<(std::ostream& ...
6 years, 9 months ago (2014-03-24 17:53:20 UTC) #18
xhwang
Also, I was debating about GetError() and ToString(). Maybe ToString() is more accurate about what ...
6 years, 9 months ago (2014-03-24 17:56:35 UTC) #19
brettw
lgtm
6 years, 9 months ago (2014-03-24 18:03:44 UTC) #20
xhwang
TBRing sky@chrmium.org on chrome/ mojo/ and ui/ changes.
6 years, 9 months ago (2014-03-24 18:12:05 UTC) #21
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 9 months ago (2014-03-24 18:12:13 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/206713004/250001
6 years, 9 months ago (2014-03-24 18:12:48 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-24 18:24:25 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-24 18:24:26 UTC) #25
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 9 months ago (2014-03-24 18:35:27 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/206713004/250001
6 years, 9 months ago (2014-03-24 18:35:57 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-24 18:42:05 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 9 months ago (2014-03-24 18:42:06 UTC) #29
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 9 months ago (2014-03-24 20:08:35 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/206713004/270001
6 years, 9 months ago (2014-03-24 20:09:49 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-24 21:06:38 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-24 21:06:38 UTC) #33
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 9 months ago (2014-03-24 21:50:36 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/206713004/290001
6 years, 9 months ago (2014-03-24 21:51:52 UTC) #35
commit-bot: I haz the power
6 years, 9 months ago (2014-03-25 01:59:12 UTC) #36
Message was sent while issue was closed.
Change committed as 259091

Powered by Google App Engine
This is Rietveld 408576698