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

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

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/notifier_state_tracker.h" 5 #include "chrome/browser/notifications/notifier_state_tracker.h"
6 6
7 #include <stddef.h>
8
7 #include <utility> 9 #include <utility>
8 10
9 #include "base/bind.h" 11 #include "base/bind.h"
10 #include "base/prefs/scoped_user_pref_update.h" 12 #include "base/prefs/scoped_user_pref_update.h"
11 #include "base/values.h" 13 #include "base/values.h"
14 #include "build/build_config.h"
12 #include "chrome/browser/notifications/desktop_notification_profile_util.h" 15 #include "chrome/browser/notifications/desktop_notification_profile_util.h"
13 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
15 #include "components/pref_registry/pref_registry_syncable.h" 18 #include "components/pref_registry/pref_registry_syncable.h"
16 #include "ui/message_center/notifier_settings.h" 19 #include "ui/message_center/notifier_settings.h"
17 20
18 #if defined(ENABLE_EXTENSIONS) 21 #if defined(ENABLE_EXTENSIONS)
19 #include "chrome/common/extensions/api/notifications.h" 22 #include "chrome/common/extensions/api/notifications.h"
20 #include "content/public/browser/browser_thread.h" 23 #include "content/public/browser/browser_thread.h"
21 #include "extensions/browser/event_router.h" 24 #include "extensions/browser/event_router.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // Tell the IO thread that this extension's permission for notifications 189 // Tell the IO thread that this extension's permission for notifications
187 // has changed. 190 // has changed.
188 extensions::InfoMap* extension_info_map = 191 extensions::InfoMap* extension_info_map =
189 extensions::ExtensionSystem::Get(profile_)->info_map(); 192 extensions::ExtensionSystem::Get(profile_)->info_map();
190 content::BrowserThread::PostTask( 193 content::BrowserThread::PostTask(
191 content::BrowserThread::IO, FROM_HERE, 194 content::BrowserThread::IO, FROM_HERE,
192 base::Bind(&extensions::InfoMap::SetNotificationsDisabled, 195 base::Bind(&extensions::InfoMap::SetNotificationsDisabled,
193 extension_info_map, notifier_id.id, !enabled)); 196 extension_info_map, notifier_id.id, !enabled));
194 } 197 }
195 #endif 198 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698