1 // Copyright 2015 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.
5 #include "ios/chrome/browser/google/google_brand.h"
7 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
10 namespace google_brand {
12 bool GetBrand(std::string* brand) {
13 if (!ios::GetChromeBrowserProvider())
16 brand->assign(ios::GetChromeBrowserProvider()->GetDistributionBrandCode());
20 bool IsOrganic(const std::string& brand) {
21 // An empty brand string on iOS is used for organic installation. All other
22 // iOS brand string are non-organic.
26 } // namespace google_brand