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

Unified Diff: content/renderer/render_view_impl.cc

Issue 12298022: Don't store the DateTimePicker client in a scoped_ptr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 3b1a0d3ed68a1126d77182272b9d272a1fd33d8c..8a3ad5c4b02bf256ce838720a6f659d7fb22d646 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -645,6 +645,7 @@ RenderViewImpl::RenderViewImpl(RenderViewImplParams* params)
expected_content_intent_id_(0),
media_player_proxy_(NULL),
synchronous_find_active_match_ordinal_(-1),
+ date_time_picker_client_(NULL),
ALLOW_THIS_IN_INITIALIZER_LIST(
load_progress_tracker_(new LoadProgressTracker(this))),
#endif
@@ -6474,8 +6475,11 @@ void RenderViewImpl::LaunchAndroidContentIntent(const GURL& intent,
bool RenderViewImpl::openDateTimeChooser(
const WebKit::WebDateTimeChooserParams& params,
WebKit::WebDateTimeChooserCompletion* completion) {
- date_time_picker_client_.reset(
- new RendererDateTimePicker(this, params, completion));
+ if (date_time_picker_client_ != NULL)
Miguel Garcia 2013/02/18 17:48:48 (I introduced the original bug so thanks a lot for
+ delete date_time_picker_client_;
+
+ date_time_picker_client_ = new RendererDateTimePicker(this, params,
+ completion);
return date_time_picker_client_->Open();
}
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698