blob: 4580c5b086b2a27ac5b84f84604c142b8e47119b [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ios/chrome/browser/google/google_brand.h"
#include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
namespace ios {
namespace google_brand {
bool GetBrand(std::string* brand) {
if (!ios::GetChromeBrowserProvider())
return false;
brand->assign(ios::GetChromeBrowserProvider()->GetDistributionBrandCode());
return true;
}
bool IsOrganic(const std::string& brand) {
// An empty brand string on iOS is used for organic installation. All other
// iOS brand string are non-organic.
return brand.empty();
}
} // namespace google_brand
} // namespace ios