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

Issue 7355011: Modify Chromoting logging to hook into base logging. (Closed)

Created:
9 years, 5 months ago by garykac
Modified:
9 years, 4 months ago
Reviewers:
Sergey Ulanov, dmac, Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Modify Chromoting logging to hook into base logging. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95380

Patch Set 1 #

Patch Set 2 : use streams for logging #

Patch Set 3 : sync/merge #

Patch Set 4 : threading #

Patch Set 5 : remove old files #

Patch Set 6 : add timestamp #

Total comments: 24

Patch Set 7 : review comments + thread proxy #

Total comments: 14

Patch Set 8 : review comments #

Total comments: 2

Patch Set 9 : time #

Total comments: 3

Patch Set 10 : merge + comments #

Patch Set 11 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -397 lines) Patch
D remoting/base/logger.h View 1 2 3 4 1 chunk +0 lines, -51 lines 0 comments Download
D remoting/base/logger.cc View 1 2 3 4 1 chunk +0 lines, -95 lines 0 comments Download
A remoting/base/task_thread_proxy.h View 1 2 3 4 5 6 7 1 chunk +50 lines, -0 lines 0 comments Download
A remoting/base/task_thread_proxy.cc View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
M remoting/base/util.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/base/util.cc View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -2 lines 0 comments Download
M remoting/client/chromoting_client.h View 1 2 3 4 5 6 3 chunks +0 lines, -3 lines 0 comments Download
M remoting/client/chromoting_client.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +4 lines, -7 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.h View 1 2 3 4 5 6 7 8 9 10 7 chunks +12 lines, -9 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +70 lines, -29 lines 0 comments Download
M remoting/client/plugin/chromoting_scriptable_object.cc View 1 2 3 4 5 6 11 chunks +11 lines, -15 lines 0 comments Download
D remoting/client/plugin/pepper_client_logger.h View 1 2 3 4 1 chunk +0 lines, -33 lines 0 comments Download
D remoting/client/plugin/pepper_client_logger.cc View 1 2 3 4 1 chunk +0 lines, -28 lines 0 comments Download
M remoting/client/plugin/pepper_view.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +9 lines, -10 lines 0 comments Download
M remoting/host/chromoting_host.h View 1 2 3 4 5 6 7 8 9 5 chunks +1 line, -7 lines 0 comments Download
M remoting/host/chromoting_host.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +11 lines, -19 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 1 2 3 4 5 6 4 chunks +1 line, -5 lines 0 comments Download
D remoting/host/plugin/host_plugin_logger.h View 1 2 3 4 1 chunk +0 lines, -29 lines 0 comments Download
D remoting/host/plugin/host_plugin_logger.cc View 1 2 3 4 1 chunk +0 lines, -22 lines 0 comments Download
M remoting/host/plugin/host_script_object.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +8 lines, -6 lines 0 comments Download
M remoting/host/plugin/host_script_object.cc View 1 2 3 4 5 6 7 8 9 10 16 chunks +60 lines, -15 lines 0 comments Download
M remoting/host/simple_host_process.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +1 line, -6 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 5 6 7 8 9 10 3 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
garykac
9 years, 5 months ago (2011-07-21 21:22:37 UTC) #1
dmac
http://codereview.chromium.org/7355011/diff/11001/remoting/base/util.cc File remoting/base/util.cc (right): http://codereview.chromium.org/7355011/diff/11001/remoting/base/util.cc#newcode18 remoting/base/util.cc:18: #if _MSC_VER >= 1400 add a comment about this? ...
9 years, 5 months ago (2011-07-21 23:37:06 UTC) #2
garykac
+sergeyu for the thread proxy http://codereview.chromium.org/7355011/diff/11001/remoting/base/util.cc File remoting/base/util.cc (right): http://codereview.chromium.org/7355011/diff/11001/remoting/base/util.cc#newcode18 remoting/base/util.cc:18: #if _MSC_VER >= 1400 ...
9 years, 4 months ago (2011-08-02 00:15:37 UTC) #3
Sergey Ulanov
http://codereview.chromium.org/7355011/diff/19001/remoting/base/task_thread_proxy.h File remoting/base/task_thread_proxy.h (right): http://codereview.chromium.org/7355011/diff/19001/remoting/base/task_thread_proxy.h#newcode1 remoting/base/task_thread_proxy.h:1: // Copyright (c) 2010 The Chromium Authors. All rights ...
9 years, 4 months ago (2011-08-02 01:08:32 UTC) #4
garykac
http://codereview.chromium.org/7355011/diff/19001/remoting/base/task_thread_proxy.h File remoting/base/task_thread_proxy.h (right): http://codereview.chromium.org/7355011/diff/19001/remoting/base/task_thread_proxy.h#newcode1 remoting/base/task_thread_proxy.h:1: // Copyright (c) 2010 The Chromium Authors. All rights ...
9 years, 4 months ago (2011-08-02 02:13:31 UTC) #5
Sergey Ulanov
http://codereview.chromium.org/7355011/diff/22003/remoting/base/util.cc File remoting/base/util.cc (right): http://codereview.chromium.org/7355011/diff/22003/remoting/base/util.cc#newcode18 remoting/base/util.cc:18: time_t t = time(NULL); It's better to use base::Time ...
9 years, 4 months ago (2011-08-02 02:21:56 UTC) #6
garykac
http://codereview.chromium.org/7355011/diff/22003/remoting/base/util.cc File remoting/base/util.cc (right): http://codereview.chromium.org/7355011/diff/22003/remoting/base/util.cc#newcode18 remoting/base/util.cc:18: time_t t = time(NULL); On 2011/08/02 02:21:56, sergeyu wrote: ...
9 years, 4 months ago (2011-08-02 18:07:01 UTC) #7
Sergey Ulanov
http://codereview.chromium.org/7355011/diff/27001/remoting/host/plugin/host_script_object.cc File remoting/host/plugin/host_script_object.cc (right): http://codereview.chromium.org/7355011/diff/27001/remoting/host/plugin/host_script_object.cc#newcode539 remoting/host/plugin/host_script_object.cc:539: if (log_debug_info_func_ && !g_logging_to_plugin) { Not sure why we ...
9 years, 4 months ago (2011-08-02 18:15:52 UTC) #8
garykac
http://codereview.chromium.org/7355011/diff/27001/remoting/host/plugin/host_script_object.cc File remoting/host/plugin/host_script_object.cc (right): http://codereview.chromium.org/7355011/diff/27001/remoting/host/plugin/host_script_object.cc#newcode539 remoting/host/plugin/host_script_object.cc:539: if (log_debug_info_func_ && !g_logging_to_plugin) { On 2011/08/02 18:15:52, sergeyu ...
9 years, 4 months ago (2011-08-02 23:09:50 UTC) #9
Wez
http://codereview.chromium.org/7355011/diff/27001/remoting/host/plugin/host_script_object.cc File remoting/host/plugin/host_script_object.cc (right): http://codereview.chromium.org/7355011/diff/27001/remoting/host/plugin/host_script_object.cc#newcode110 remoting/host/plugin/host_script_object.cc:110: g_logging_old_handler_ = NULL; This code isn't symmetric with the ...
9 years, 4 months ago (2011-08-02 23:45:26 UTC) #10
Wez
9 years, 4 months ago (2011-08-04 02:21:11 UTC) #11
On 2011/08/02 23:45:26, Wez wrote:
>
http://codereview.chromium.org/7355011/diff/27001/remoting/host/plugin/host_s...
> File remoting/host/plugin/host_script_object.cc (right):
> 
>
http://codereview.chromium.org/7355011/diff/27001/remoting/host/plugin/host_s...
> remoting/host/plugin/host_script_object.cc:110: g_logging_old_handler_ = NULL;
> This code isn't symmetric with the constructor; if multiple instances are
> created and destroyed then we'll tear down our logging handler as soon as the
> first is destroyed, and only reinstate it if a new instance is started.
> 
> Given that hooking logging has global effect, it might make more sense to hook
> in NPP_Initialize, and un-hook in NPP_Shutdown?

LGTM.  Let's revisit this later; at your discretion whether to add a TODO in
this CL. :)

Powered by Google App Engine
This is Rietveld 408576698