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

Side by Side Diff: chromeos/dbus/fake_shill_manager_client.cc

Issue 2364703002: Add network throttling as an enterprise policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add network bandwidth throttling as an enterprise policy Created 4 years, 2 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 "chromeos/dbus/fake_shill_manager_client.h" 5 #include "chromeos/dbus/fake_shill_manager_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map>
10 #include <memory>
Andrew T Wilson (Slow) 2016/10/21 13:27:30 Why are these needed?
11 #include <vector>
12
9 #include "base/bind.h" 13 #include "base/bind.h"
10 #include "base/command_line.h" 14 #include "base/command_line.h"
11 #include "base/location.h" 15 #include "base/location.h"
12 #include "base/memory/ptr_util.h" 16 #include "base/memory/ptr_util.h"
13 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
14 #include "base/single_thread_task_runner.h" 18 #include "base/single_thread_task_runner.h"
15 #include "base/strings/string_number_conversions.h" 19 #include "base/strings/string_number_conversions.h"
16 #include "base/strings/string_split.h" 20 #include "base/strings/string_split.h"
17 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
18 #include "base/strings/stringprintf.h" 22 #include "base/strings/stringprintf.h"
(...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 LOG(WARNING) << "Invalid state: " << state << " for " << type; 1232 LOG(WARNING) << "Invalid state: " << state << " for " << type;
1229 result = shill::kStateIdle; 1233 result = shill::kStateIdle;
1230 } 1234 }
1231 } 1235 }
1232 VLOG(1) << "Initial state for: " << type << " = " << result 1236 VLOG(1) << "Initial state for: " << type << " = " << result
1233 << " Enabled: " << *enabled; 1237 << " Enabled: " << *enabled;
1234 return result; 1238 return result;
1235 } 1239 }
1236 1240
1237 } // namespace chromeos 1241 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698