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

Side by Side Diff: chrome/browser/renderer_host/chrome_extension_message_filter.cc

Issue 719243002: Move default_locale manifest handler out of //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: type alias Created 6 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/renderer_host/chrome_extension_message_filter.h" 5 #include "chrome/browser/renderer_host/chrome_extension_message_filter.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/chrome_notification_types.h" 12 #include "chrome/browser/chrome_notification_types.h"
13 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" 13 #include "chrome/browser/extensions/activity_log/activity_action_constants.h"
14 #include "chrome/browser/extensions/activity_log/activity_actions.h" 14 #include "chrome/browser/extensions/activity_log/activity_actions.h"
15 #include "chrome/browser/extensions/activity_log/activity_log.h" 15 #include "chrome/browser/extensions/activity_log/activity_log.h"
16 #include "chrome/browser/extensions/api/activity_log_private/activity_log_privat e_api.h" 16 #include "chrome/browser/extensions/api/activity_log_private/activity_log_privat e_api.h"
17 #include "chrome/browser/extensions/api/messaging/message_service.h" 17 #include "chrome/browser/extensions/api/messaging/message_service.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/profiles/profile_manager.h" 19 #include "chrome/browser/profiles/profile_manager.h"
20 #include "chrome/common/extensions/api/i18n/default_locale_handler.h"
21 #include "chrome/common/extensions/chrome_extension_messages.h" 20 #include "chrome/common/extensions/chrome_extension_messages.h"
22 #include "content/public/browser/notification_service.h" 21 #include "content/public/browser/notification_service.h"
23 #include "content/public/browser/render_process_host.h" 22 #include "content/public/browser/render_process_host.h"
24 #include "extensions/browser/extension_system.h" 23 #include "extensions/browser/extension_system.h"
25 #include "extensions/common/api/messaging/message.h" 24 #include "extensions/common/api/messaging/message.h"
26 #include "extensions/common/extension_messages.h" 25 #include "extensions/common/extension_messages.h"
27 #include "extensions/common/file_util.h" 26 #include "extensions/common/file_util.h"
27 #include "extensions/common/manifest_handlers/default_locale_handler.h"
28 #include "extensions/common/message_bundle.h" 28 #include "extensions/common/message_bundle.h"
29 29
30 using content::BrowserThread; 30 using content::BrowserThread;
31 31
32 namespace { 32 namespace {
33 33
34 const uint32 kFilteredMessageClasses[] = { 34 const uint32 kFilteredMessageClasses[] = {
35 ChromeExtensionMsgStart, 35 ChromeExtensionMsgStart,
36 ExtensionMsgStart, 36 ExtensionMsgStart,
37 }; 37 };
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 AddActionToExtensionActivityLog(profile_, action); 326 AddActionToExtensionActivityLog(profile_, action);
327 } 327 }
328 328
329 void ChromeExtensionMessageFilter::Observe( 329 void ChromeExtensionMessageFilter::Observe(
330 int type, 330 int type,
331 const content::NotificationSource& source, 331 const content::NotificationSource& source,
332 const content::NotificationDetails& details) { 332 const content::NotificationDetails& details) {
333 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); 333 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type);
334 profile_ = NULL; 334 profile_ = NULL;
335 } 335 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/user_script_loader.cc ('k') | chrome/browser/renderer_host/chrome_render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698