| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/extensions/extension_popup_api.h" | 5 #include "chrome/browser/extensions/extension_popup_api.h" |
| 6 | 6 |
| 7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/extensions/extension_dom_ui.h" | 10 #include "chrome/browser/extensions/extension_dom_ui.h" |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 } | 491 } |
| 492 | 492 |
| 493 // static | 493 // static |
| 494 void PopupEventRouter::OnPopupClosed(Profile* profile, | 494 void PopupEventRouter::OnPopupClosed(Profile* profile, |
| 495 int routing_id) { | 495 int routing_id) { |
| 496 std::string full_event_name = StringPrintf( | 496 std::string full_event_name = StringPrintf( |
| 497 extension_popup_module_events::kOnPopupClosed, | 497 extension_popup_module_events::kOnPopupClosed, |
| 498 routing_id); | 498 routing_id); |
| 499 | 499 |
| 500 profile->GetExtensionMessageService()->DispatchEventToRenderers( | 500 profile->GetExtensionMessageService()->DispatchEventToRenderers( |
| 501 full_event_name, | 501 full_event_name, base::JSONWriter::kEmptyArray, profile, GURL()); |
| 502 base::JSONWriter::kEmptyArray, | |
| 503 profile->IsOffTheRecord(), | |
| 504 GURL()); | |
| 505 } | 502 } |
| OLD | NEW |