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

Side by Side Diff: chrome/browser/ui/webui/help/help_utils_chromeos.h

Issue 2919683002: Treat tethered networks as mobile networks (Closed)
Patch Set: Clean up code Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/help/help_utils_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_HELP_UTILS_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_HELP_UTILS_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_WEBUI_HELP_HELP_UTILS_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_WEBUI_HELP_HELP_UTILS_CHROMEOS_H_
7 7
8 #include <string> 8 #include "base/strings/string16.h"
9 9
10 #include "base/strings/string16.h" 10 namespace chromeos {
11 class NetworkState;
12 }
11 13
12 namespace help_utils_chromeos { 14 namespace help_utils_chromeos {
13 15
14 // Returns true if updates over cellular networks are allowed. If |interactive| 16 // Returns true if updates over cellular networks are allowed. If |interactive|
15 // is true (e.g. the user clicked on a 'check for updates' button), updates over 17 // is true (e.g. the user clicked on a 'check for updates' button), updates over
16 // cellular are allowed unless prohibited by policy. If |interactive| is false, 18 // cellular are allowed unless prohibited by policy. If |interactive| is false,
17 // updates over cellular may be allowed by default for the device type, or by 19 // updates over cellular may be allowed by default for the device type, or by
18 // policy. 20 // policy.
19 bool IsUpdateOverCellularAllowed(bool interactive); 21 bool IsUpdateOverCellularAllowed(bool interactive);
20 22
21 // Returns localized name for the connection |type|. 23 // Returns localized name for the connection |type|.
22 base::string16 GetConnectionTypeAsUTF16(const std::string& type); 24 base::string16 GetConnectionTypeAsUTF16(const chromeos::NetworkState* network);
23 25
24 } // namespace help_utils_chromeos 26 } // namespace help_utils_chromeos
25 27
26 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_UTILS_CHROMEOS_H_ 28 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_UTILS_CHROMEOS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/help/help_utils_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698