Index: content/public/test/browser_test_utils.cc |
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc |
index b7db17d055591c3e5ba6607ecd490f34cdf4b86c..744579ba7760bd6ffbb50e7982e4950f5e77a991 100644 |
--- a/content/public/test/browser_test_utils.cc |
+++ b/content/public/test/browser_test_utils.cc |
@@ -504,8 +504,10 @@ bool DOMMessageQueue::WaitForMessage(std::string* message) { |
// The queue should not be empty, unless we were quit because of a timeout. |
if (message_queue_.empty()) |
return false; |
- if (message) |
+ if (message) { |
*message = message_queue_.front(); |
+ message_queue_.pop(); |
sky
2013/06/20 23:26:26
Should the pop happen regardless of message being
kevers
2013/06/21 13:45:40
Good catch. Fixed.
|
+ } |
return true; |
} |