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

Side by Side Diff: chrome/installer/util/legacy_firewall_manager_win.cc

Issue 2511683002: Remove unneeded stringprintf.h usage in chrome/ and net/ (Closed)
Patch Set: rebase Created 4 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/installer/util/legacy_firewall_manager_win.h" 5 #include "chrome/installer/util/legacy_firewall_manager_win.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/stringprintf.h"
9 #include "base/win/scoped_bstr.h" 8 #include "base/win/scoped_bstr.h"
10 9
11 namespace installer { 10 namespace installer {
12 11
13 LegacyFirewallManager::LegacyFirewallManager() {} 12 LegacyFirewallManager::LegacyFirewallManager() {}
14 13
15 LegacyFirewallManager::~LegacyFirewallManager() {} 14 LegacyFirewallManager::~LegacyFirewallManager() {}
16 15
17 bool LegacyFirewallManager::Init(const base::string16& app_name, 16 bool LegacyFirewallManager::Init(const base::string16& app_name,
18 const base::FilePath& app_path) { 17 const base::FilePath& app_path) {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 base::win::ScopedBstr(app_path_.value().c_str())); 124 base::win::ScopedBstr(app_path_.value().c_str()));
126 // IpVersion defaults to NET_FW_IP_VERSION_ANY. 125 // IpVersion defaults to NET_FW_IP_VERSION_ANY.
127 // Scope defaults to NET_FW_SCOPE_ALL. 126 // Scope defaults to NET_FW_SCOPE_ALL.
128 // RemoteAddresses defaults to "*". 127 // RemoteAddresses defaults to "*".
129 chrome_application->put_Enabled(allow ? VARIANT_TRUE : VARIANT_FALSE); 128 chrome_application->put_Enabled(allow ? VARIANT_TRUE : VARIANT_FALSE);
130 129
131 return chrome_application; 130 return chrome_application;
132 } 131 }
133 132
134 } // namespace installer 133 } // namespace installer
OLDNEW
« no previous file with comments | « chrome/installer/gcapi/gcapi_test_registry_overrider.cc ('k') | chrome/installer/util/master_preferences_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698