Taylor Bergquist | 7fe0c80 | 2019-01-09 03:47:20 | [diff] [blame] | 1 | // 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 Sepulveda | ee31738 | 2019-05-09 22:04:10 | [diff] [blame^] | 6 | |
| 7 | #include "base/strings/string_number_conversions.h" |
Taylor Bergquist | 7fe0c80 | 2019-01-09 03:47:20 | [diff] [blame] | 8 | #include "base/strings/utf_string_conversions.h" |
| 9 | #include "third_party/skia/include/utils/SkRandom.h" |
| 10 | |
| 11 | TabGroupData::TabGroupData() { |
Bret Sepulveda | ee31738 | 2019-05-09 22:04:10 | [diff] [blame^] | 12 | 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 Bergquist | 7fe0c80 | 2019-01-09 03:47:20 | [diff] [blame] | 17 | static SkRandom rand; |
| 18 | stroke_color_ = rand.nextU() | 0xff000000; |
| 19 | } |