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

Side by Side Diff: chrome/browser/chromeos/status/data_promo_notification.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/chromeos/status/data_promo_notification.h" 5 #include "chrome/browser/chromeos/status/data_promo_notification.h"
6 6
7 #include "ash/system/system_notifier.h" 7 #include "ash/system/system_notifier.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/prefs/pref_registry_simple.h"
10 #include "base/prefs/pref_service.h"
11 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/chromeos/login/helper.h" 11 #include "chrome/browser/chromeos/login/helper.h"
14 #include "chrome/browser/chromeos/mobile_config.h" 12 #include "chrome/browser/chromeos/mobile_config.h"
15 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/profiles/profile_manager.h" 14 #include "chrome/browser/profiles/profile_manager.h"
17 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/browser_list.h" 16 #include "chrome/browser/ui/browser_list.h"
19 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" 17 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
20 #include "chrome/browser/ui/singleton_tabs.h" 18 #include "chrome/browser/ui/singleton_tabs.h"
21 #include "chrome/common/extensions/extension_constants.h" 19 #include "chrome/common/extensions/extension_constants.h"
22 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
23 #include "chrome/grit/generated_resources.h" 21 #include "chrome/grit/generated_resources.h"
24 #include "chromeos/chromeos_switches.h" 22 #include "chromeos/chromeos_switches.h"
25 #include "chromeos/login/login_state.h" 23 #include "chromeos/login/login_state.h"
26 #include "chromeos/network/device_state.h" 24 #include "chromeos/network/device_state.h"
27 #include "chromeos/network/network_connection_handler.h" 25 #include "chromeos/network/network_connection_handler.h"
28 #include "chromeos/network/network_event_log.h" 26 #include "chromeos/network/network_event_log.h"
29 #include "chromeos/network/network_state.h" 27 #include "chromeos/network/network_state.h"
30 #include "chromeos/network/network_state_handler.h" 28 #include "chromeos/network/network_state_handler.h"
29 #include "components/prefs/pref_registry_simple.h"
30 #include "components/prefs/pref_service.h"
31 #include "content/public/browser/user_metrics.h" 31 #include "content/public/browser/user_metrics.h"
32 #include "extensions/browser/extension_registry.h" 32 #include "extensions/browser/extension_registry.h"
33 #include "grit/ui_chromeos_resources.h" 33 #include "grit/ui_chromeos_resources.h"
34 #include "third_party/cros_system_api/dbus/service_constants.h" 34 #include "third_party/cros_system_api/dbus/service_constants.h"
35 #include "ui/base/l10n/l10n_util.h" 35 #include "ui/base/l10n/l10n_util.h"
36 #include "ui/base/resource/resource_bundle.h" 36 #include "ui/base/resource/resource_bundle.h"
37 #include "ui/chromeos/network/network_connect.h" 37 #include "ui/chromeos/network/network_connect.h"
38 #include "ui/chromeos/network/network_state_notifier.h" 38 #include "ui/chromeos/network/network_state_notifier.h"
39 #include "ui/message_center/message_center.h" 39 #include "ui/message_center/message_center.h"
40 #include "ui/message_center/notification.h" 40 #include "ui/message_center/notification.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 SetDataSaverPromptsShown(0); // demo mode resets times shown counts. 314 SetDataSaverPromptsShown(0); // demo mode resets times shown counts.
315 SetShow3gPromoNotification(true); 315 SetShow3gPromoNotification(true);
316 } else { 316 } else {
317 SetDataSaverPromptsShown(times_shown + 1); 317 SetDataSaverPromptsShown(times_shown + 1);
318 } 318 }
319 319
320 return true; 320 return true;
321 } 321 }
322 322
323 } // namespace chromeos 323 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698