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

Unified Diff: chrome/browser/automation/automation_event_observers_chromeos.cc

Issue 10386144: Fixed a possible memory leak and support null pointers in AutomationEventObservers' NotifyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
Index: chrome/browser/automation/automation_event_observers_chromeos.cc
diff --git a/chrome/browser/automation/automation_event_observers_chromeos.cc b/chrome/browser/automation/automation_event_observers_chromeos.cc
index 4d3d27d03ef4f71c237fee10f55c85de2834a8ca..7490ab820c94e7ee086986c8a00f590762256da6 100644
--- a/chrome/browser/automation/automation_event_observers_chromeos.cc
+++ b/chrome/browser/automation/automation_event_observers_chromeos.cc
@@ -29,7 +29,6 @@ void LoginEventObserver::OnLoginSuccess(const std::string& username,
void LoginEventObserver::_NotifyLoginEvent(const std::string& error_string) {
DictionaryValue* dict = new DictionaryValue;
dict->SetString("type", "login_event");
- dict->SetInteger("observer_id", GetId());
if (error_string.length())
dict->SetString("error_string", error_string);
NotifyEvent(dict);

Powered by Google App Engine
This is Rietveld 408576698