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

Side by Side Diff: chrome/browser/notifications/desktop_notification_service.cc

Issue 514493002: Cleanup: Remove unneeded grit include in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@grit_clean_chromium_strings_401588_a
Patch Set: rebase Created 6 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) 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/notifications/desktop_notification_service.h" 5 #include "chrome/browser/notifications/desktop_notification_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/prefs/scoped_user_pref_update.h" 9 #include "base/prefs/scoped_user_pref_update.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 16 matching lines...) Expand all
27 #include "components/pref_registry/pref_registry_syncable.h" 27 #include "components/pref_registry/pref_registry_syncable.h"
28 #include "content/public/browser/browser_thread.h" 28 #include "content/public/browser/browser_thread.h"
29 #include "content/public/browser/desktop_notification_delegate.h" 29 #include "content/public/browser/desktop_notification_delegate.h"
30 #include "content/public/browser/notification_service.h" 30 #include "content/public/browser/notification_service.h"
31 #include "content/public/browser/render_frame_host.h" 31 #include "content/public/browser/render_frame_host.h"
32 #include "content/public/browser/render_process_host.h" 32 #include "content/public/browser/render_process_host.h"
33 #include "content/public/browser/render_view_host.h" 33 #include "content/public/browser/render_view_host.h"
34 #include "content/public/browser/web_contents.h" 34 #include "content/public/browser/web_contents.h"
35 #include "content/public/common/show_desktop_notification_params.h" 35 #include "content/public/common/show_desktop_notification_params.h"
36 #include "grit/browser_resources.h" 36 #include "grit/browser_resources.h"
37 #include "grit/theme_resources.h"
38 #include "net/base/escape.h" 37 #include "net/base/escape.h"
39 #include "ui/base/resource/resource_bundle.h" 38 #include "ui/base/resource/resource_bundle.h"
40 #include "ui/base/webui/web_ui_util.h" 39 #include "ui/base/webui/web_ui_util.h"
41 #include "ui/message_center/notifier_settings.h" 40 #include "ui/message_center/notifier_settings.h"
42 41
43 #if defined(ENABLE_EXTENSIONS) 42 #if defined(ENABLE_EXTENSIONS)
44 #include "chrome/browser/extensions/api/notifications/notifications_api.h" 43 #include "chrome/browser/extensions/api/notifications/notifications_api.h"
45 #include "chrome/browser/extensions/extension_service.h" 44 #include "chrome/browser/extensions/extension_service.h"
46 #include "extensions/browser/event_router.h" 45 #include "extensions/browser/event_router.h"
47 #include "extensions/browser/extension_registry.h" 46 #include "extensions/browser/extension_registry.h"
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // Tell the IO thread that this extension's permission for notifications 404 // Tell the IO thread that this extension's permission for notifications
406 // has changed. 405 // has changed.
407 extensions::InfoMap* extension_info_map = 406 extensions::InfoMap* extension_info_map =
408 extensions::ExtensionSystem::Get(profile_)->info_map(); 407 extensions::ExtensionSystem::Get(profile_)->info_map();
409 BrowserThread::PostTask( 408 BrowserThread::PostTask(
410 BrowserThread::IO, FROM_HERE, 409 BrowserThread::IO, FROM_HERE,
411 base::Bind(&extensions::InfoMap::SetNotificationsDisabled, 410 base::Bind(&extensions::InfoMap::SetNotificationsDisabled,
412 extension_info_map, notifier_id.id, !enabled)); 411 extension_info_map, notifier_id.id, !enabled));
413 #endif 412 #endif
414 } 413 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698