blob: f32c3f92b8167191bde9e28bc2cf97f8b484b9a2 [file] [log] [blame]
Taylor Bergquist7fe0c802019-01-09 03:47:201// Copyright 2018 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/ui/tabs/tab_group_data.h"
Bret Sepulvedaee317382019-05-09 22:04:106
7#include "base/strings/string_number_conversions.h"
Taylor Bergquist7fe0c802019-01-09 03:47:208#include "base/strings/utf_string_conversions.h"
9#include "third_party/skia/include/utils/SkRandom.h"
10
11TabGroupData::TabGroupData() {
Bret Sepulvedaee317382019-05-09 22:04:1012 static int next_placeholder_title_number = 1;
13 title_ = base::ASCIIToUTF16(
14 "Group " + base::NumberToString(next_placeholder_title_number));
15 ++next_placeholder_title_number;
16
Taylor Bergquist7fe0c802019-01-09 03:47:2017 static SkRandom rand;
18 stroke_color_ = rand.nextU() | 0xff000000;
19}