Update mojo surfaces bindings and mojo/cc/ glue
[chromium-blink-merge.git] / chrome / browser / google / google_profile_helper.cc
blobd2166220eae4f641a62c621181a0997ebe97b889
1 // Copyright 2014 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 "chrome/browser/google/google_profile_helper.h"
7 #include "chrome/browser/google/google_url_tracker_factory.h"
8 #include "components/google/core/browser/google_url_tracker.h"
9 #include "components/google/core/browser/google_util.h"
10 #include "url/gurl.h"
12 namespace google_profile_helper {
14 GURL GetGoogleHomePageURL(Profile* profile) {
15 const GoogleURLTracker* tracker =
16 GoogleURLTrackerFactory::GetForProfile(profile);
17 return tracker ?
18 tracker->google_url() : GURL(GoogleURLTracker::kDefaultGoogleHomepage);
21 } // namespace google_profile_helper