summaryrefslogtreecommitdiffstats
path: root/chrome/browser/google/google_profile_helper.cc
blob: d2166220eae4f641a62c621181a0997ebe97b889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2014 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 "chrome/browser/google/google_profile_helper.h"

#include "chrome/browser/google/google_url_tracker_factory.h"
#include "components/google/core/browser/google_url_tracker.h"
#include "components/google/core/browser/google_util.h"
#include "url/gurl.h"

namespace google_profile_helper {

GURL GetGoogleHomePageURL(Profile* profile) {
  const GoogleURLTracker* tracker =
      GoogleURLTrackerFactory::GetForProfile(profile);
  return tracker ?
      tracker->google_url() : GURL(GoogleURLTracker::kDefaultGoogleHomepage);
}

}  // namespace google_profile_helper