refactor: replace base::StringPrintf() calls with absl::StrFormat() (#44515)
refactor: replace base::StringPrintf() calls with absl::StFormat()
The former is now a pass-through for the latter and is slated for removal
Xref: https://issues.chromium.org/issues/40241565
4907781
This commit is contained in:
parent
c63d0d61e7
commit
726d439399
15 changed files with 59 additions and 61 deletions
|
@ -11,7 +11,6 @@
|
|||
#include "base/functional/bind.h"
|
||||
#include "base/functional/callback_helpers.h"
|
||||
#include "base/strings/string_split.h"
|
||||
#include "base/strings/stringprintf.h"
|
||||
#include "content/public/browser/browser_context.h"
|
||||
#include "extensions/browser/extension_navigation_ui_data.h"
|
||||
#include "net/base/completion_repeating_callback.h"
|
||||
|
@ -25,6 +24,7 @@
|
|||
#include "services/network/public/mojom/url_response_head.mojom.h"
|
||||
#include "shell/browser/net/asar/asar_url_loader.h"
|
||||
#include "shell/common/options_switches.h"
|
||||
#include "third_party/abseil-cpp/absl/strings/str_format.h"
|
||||
#include "url/origin.h"
|
||||
|
||||
namespace electron {
|
||||
|
@ -400,7 +400,7 @@ void ProxyingURLLoaderFactory::InProgressRequest::
|
|||
net::SiteForCookies::FromUrl(redirect_url_);
|
||||
|
||||
auto head = network::mojom::URLResponseHead::New();
|
||||
std::string headers = base::StringPrintf(
|
||||
std::string headers = absl::StrFormat(
|
||||
"HTTP/1.1 %i Internal Redirect\n"
|
||||
"Location: %s\n"
|
||||
"Non-Authoritative-Reason: WebRequest API\n\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue