diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-08 17:45:32 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-08 17:45:32 +0000 |
commit | 53a7f13686fbe0dac20c7f83602fc639cac684da (patch) | |
tree | 857b89674bbc35ee932e57533dbdbe46df5aa370 /chrome | |
parent | 483bb037f7a9f279fda671345895e4f258003c75 (diff) | |
download | chromium_src-53a7f13686fbe0dac20c7f83602fc639cac684da.zip chromium_src-53a7f13686fbe0dac20c7f83602fc639cac684da.tar.gz chromium_src-53a7f13686fbe0dac20c7f83602fc639cac684da.tar.bz2 |
ifdef'ed debug only code
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1600015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43967 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/chromeos/notifications/notification_panel.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/notifications/notification_panel.cc b/chrome/browser/chromeos/notifications/notification_panel.cc index 48df37d..b055510 100644 --- a/chrome/browser/chromeos/notifications/notification_panel.cc +++ b/chrome/browser/chromeos/notifications/notification_panel.cc @@ -35,6 +35,7 @@ const int kStaleTimeoutInSeconds = 10; using chromeos::BalloonViewImpl; using chromeos::NotificationPanel; +#if !defined(NDEBUG) // A utility function to convert State enum to string. const char* ToStr(const NotificationPanel::State state) { switch (state) { @@ -52,6 +53,7 @@ const char* ToStr(const NotificationPanel::State state) { return "unknown"; } } +#endif class PanelWidget : public views::WidgetGtk { public: @@ -610,8 +612,10 @@ void NotificationPanel::OnStale(BalloonViewImpl* view) { } void NotificationPanel::SetState(State new_state, const char* name) { +#if !defined(NDEBUG) DLOG(INFO) << "state transition " << ToStr(state_) << " >> " << ToStr(new_state) << " in " << name; +#endif state_ = new_state; } |