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

Side by Side Diff: chrome/browser/extensions/extension_popup_api.cc

Issue 3210007: Add support for a "split" incognito behavior for extensions. (Closed)
Patch Set: latest Created 10 years, 3 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_omnibox_api.cc ('k') | chrome/browser/extensions/extension_process_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698