refactor: replace base::StringPrintf() calls with absl::StrFormat() (#44552)
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
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
460fc9b452
commit
c0b914f6a6
15 changed files with 59 additions and 61 deletions
|
@ -9,7 +9,6 @@
|
|||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "base/strings/stringprintf.h"
|
||||
#include "chrome/common/extensions/extension_metrics.h"
|
||||
#include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
|
||||
#include "chrome/common/webui_url_constants.h"
|
||||
|
@ -24,6 +23,7 @@
|
|||
#include "extensions/common/api/management.h"
|
||||
#include "extensions/common/extension.h"
|
||||
#include "services/data_decoder/public/cpp/data_decoder.h"
|
||||
#include "third_party/abseil-cpp/absl/strings/str_format.h"
|
||||
#include "third_party/blink/public/mojom/manifest/display_mode.mojom.h"
|
||||
|
||||
namespace {
|
||||
|
@ -202,7 +202,7 @@ GURL ElectronManagementAPIDelegate::GetIconURL(
|
|||
int icon_size,
|
||||
ExtensionIconSet::Match match,
|
||||
bool grayscale) const {
|
||||
GURL icon_url(base::StringPrintf(
|
||||
GURL icon_url(absl::StrFormat(
|
||||
"%s%s/%d/%d%s", chrome::kChromeUIExtensionIconURL,
|
||||
extension->id().c_str(), icon_size, static_cast<int>(match),
|
||||
grayscale ? "?grayscale=true" : ""));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue