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" |
Taylor Bergquist | 7fe0c80 | 2019-01-09 03:47:20 | [diff] [blame] | 6 | #include "base/strings/utf_string_conversions.h" |
| 7 | #include "third_party/skia/include/utils/SkRandom.h" |
| 8 | |
| 9 | TabGroupData::TabGroupData() { |
Keishi Hattori | a8315825 | 2019-04-19 05:07:40 | [diff] [blame] | 10 | static int groupCount = 0; |
| 11 | title_ = base::ASCIIToUTF16("Group " + std::to_string(groupCount)); |
| 12 | groupCount++; |
Taylor Bergquist | 7fe0c80 | 2019-01-09 03:47:20 | [diff] [blame] | 13 | static SkRandom rand; |
| 14 | stroke_color_ = rand.nextU() | 0xff000000; |
| 15 | } |