[Notification] Fix wrong loop in OnDetailedChanged
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 18 Sep 2013 20:19:13 +0000 (17:19 -0300)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 18 Sep 2013 20:26:11 +0000 (17:26 -0300)
commit2045d88f2199a649c3fe34e8b2b6f1244542087c
tree4dd835f1f06aa6019273795f5c5ec994172b7405
parent50160ca8ab76bed27eb30d6f7e402a337c7af737
[Notification] Fix wrong loop in OnDetailedChanged

The loop was missing incrementing the iterator. This led to an infinite
loop, and then to crash in the extension process. This patch experiments
with std::find_if to avoid having to write the raw loop at all.
notification/mobile/notification_manager.cc
notification/mobile/notification_manager.h