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

Side by Side Diff: chrome/browser/extensions/api/messaging/message_service.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/api/messaging/message_service.h" 5 #include "chrome/browser/extensions/api/messaging/message_service.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <limits> 8 #include <limits>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/atomic_sequence_num.h" 11 #include "base/atomic_sequence_num.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/json/json_writer.h" 14 #include "base/json/json_writer.h"
15 #include "base/lazy_instance.h" 15 #include "base/lazy_instance.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/metrics/histogram.h" 17 #include "base/metrics/histogram.h"
18 #include "base/prefs/pref_service.h"
19 #include "base/stl_util.h" 18 #include "base/stl_util.h"
20 #include "build/build_config.h" 19 #include "build/build_config.h"
21 #include "chrome/browser/extensions/api/messaging/extension_message_port.h" 20 #include "chrome/browser/extensions/api/messaging/extension_message_port.h"
22 #include "chrome/browser/extensions/api/messaging/incognito_connectability.h" 21 #include "chrome/browser/extensions/api/messaging/incognito_connectability.h"
23 #include "chrome/browser/extensions/api/messaging/native_message_port.h" 22 #include "chrome/browser/extensions/api/messaging/native_message_port.h"
24 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" 23 #include "chrome/browser/extensions/api/tabs/tabs_constants.h"
25 #include "chrome/browser/extensions/extension_service.h" 24 #include "chrome/browser/extensions/extension_service.h"
26 #include "chrome/browser/extensions/extension_tab_util.h" 25 #include "chrome/browser/extensions/extension_tab_util.h"
27 #include "chrome/browser/extensions/extension_util.h" 26 #include "chrome/browser/extensions/extension_util.h"
28 #include "chrome/browser/profiles/profile.h" 27 #include "chrome/browser/profiles/profile.h"
29 #include "chrome/browser/tab_contents/tab_util.h" 28 #include "chrome/browser/tab_contents/tab_util.h"
30 #include "components/guest_view/common/guest_view_constants.h" 29 #include "components/guest_view/common/guest_view_constants.h"
30 #include "components/prefs/pref_service.h"
31 #include "content/public/browser/browser_thread.h" 31 #include "content/public/browser/browser_thread.h"
32 #include "content/public/browser/render_frame_host.h" 32 #include "content/public/browser/render_frame_host.h"
33 #include "content/public/browser/render_process_host.h" 33 #include "content/public/browser/render_process_host.h"
34 #include "content/public/browser/render_view_host.h" 34 #include "content/public/browser/render_view_host.h"
35 #include "content/public/browser/render_widget_host.h" 35 #include "content/public/browser/render_widget_host.h"
36 #include "content/public/browser/render_widget_host_view.h" 36 #include "content/public/browser/render_widget_host_view.h"
37 #include "content/public/browser/site_instance.h" 37 #include "content/public/browser/site_instance.h"
38 #include "content/public/browser/web_contents.h" 38 #include "content/public/browser/web_contents.h"
39 #include "content/public/common/child_process_host.h" 39 #include "content/public/common/child_process_host.h"
40 #include "extensions/browser/event_router.h" 40 #include "extensions/browser/event_router.h"
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 1010
1011 MessageChannelMap::iterator channel_iter = channels_.find(channel_id); 1011 MessageChannelMap::iterator channel_iter = channels_.find(channel_id);
1012 if (channel_iter != channels_.end()) { 1012 if (channel_iter != channels_.end()) {
1013 for (const PendingMessage& message : queue) { 1013 for (const PendingMessage& message : queue) {
1014 DispatchMessage(message.first, channel_iter->second, message.second); 1014 DispatchMessage(message.first, channel_iter->second, message.second);
1015 } 1015 }
1016 } 1016 }
1017 } 1017 }
1018 1018
1019 } // namespace extensions 1019 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698