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

Unified Diff: ash/accelerators/debug_commands.cc

Issue 1022333002: Initial CL for Data Saver (Flywheel) prompt when cellular network detected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from two reviewers Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ash/accelerators/debug_commands.cc
diff --git a/ash/accelerators/debug_commands.cc b/ash/accelerators/debug_commands.cc
index 5ce0c7c40d9f8f1fc20421ffe74bec59ddab4fc3..f528fecf6bf3c90cc3c484e9f7b8be28c42f7c81 100644
--- a/ash/accelerators/debug_commands.cc
+++ b/ash/accelerators/debug_commands.cc
@@ -15,6 +15,7 @@
#include "ash/shell.h"
#include "ash/wm/window_util.h"
#include "base/command_line.h"
+#include "chromeos/network/network_state_handler.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "ui/aura/window.h"
@@ -167,6 +168,10 @@ void PerformDebugActionIfEnabled(AcceleratorAction action) {
case DEBUG_TOGGLE_ROOT_WINDOW_FULL_SCREEN:
Shell::GetPrimaryRootWindowController()->ash_host()->ToggleFullScreen();
break;
+ case DEBUG_TOGGLE_SHOW_DATASAVER_PROMPT:
+ chromeos::NetworkHandler::Get()->network_state_handler()
+ ->DebugNotifyNetworkPropertiesUpdated();
stevenjb 2015/03/25 17:57:08 The correlation between "show dataserver prompt" a
Greg Levin 2015/04/03 18:28:37 All hotkey code deleted.
+ break;
case DEBUG_TOGGLE_SHOW_DEBUG_BORDERS:
ToggleShowDebugBorders();
break;

Powered by Google App Engine
This is Rietveld 408576698