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

Side by Side Diff: chrome/browser/printing/cloud_print/privet_notifications.cc

Issue 2299993004: Migrate chrome/browser files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/printing/cloud_print/privet_notifications.h" 5 #include "chrome/browser/printing/cloud_print/privet_notifications.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram_macros.h"
14 #include "base/rand_util.h" 14 #include "base/rand_util.h"
15 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
16 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
17 #include "base/threading/thread_task_runner_handle.h" 17 #include "base/threading/thread_task_runner_handle.h"
18 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
19 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" 19 #include "chrome/browser/local_discovery/service_discovery_shared_client.h"
20 #include "chrome/browser/notifications/notification.h" 20 #include "chrome/browser/notifications/notification.h"
21 #include "chrome/browser/notifications/notification_ui_manager.h" 21 #include "chrome/browser/notifications/notification_ui_manager.h"
22 #include "chrome/browser/printing/cloud_print/privet_device_lister_impl.h" 22 #include "chrome/browser/printing/cloud_print/privet_device_lister_impl.h"
23 #include "chrome/browser/printing/cloud_print/privet_http_asynchronous_factory.h " 23 #include "chrome/browser/printing/cloud_print/privet_http_asynchronous_factory.h "
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 chrome::Navigate(&params); 381 chrome::Navigate(&params);
382 } 382 }
383 383
384 void PrivetNotificationDelegate::DisableNotifications() { 384 void PrivetNotificationDelegate::DisableNotifications() {
385 Profile* profile = Profile::FromBrowserContext(profile_); 385 Profile* profile = Profile::FromBrowserContext(profile_);
386 profile->GetPrefs()->SetBoolean(prefs::kLocalDiscoveryNotificationsEnabled, 386 profile->GetPrefs()->SetBoolean(prefs::kLocalDiscoveryNotificationsEnabled,
387 false); 387 false);
388 } 388 }
389 389
390 } // namespace cloud_print 390 } // namespace cloud_print
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698