Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: chrome/browser/google/google_profile_helper.cc

Issue 316203003: Componentize GoogleURLTracker(InfoBarDelegate,MapEntry,NavHelper) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/google/google_profile_helper.h" 5 #include "chrome/browser/google/google_profile_helper.h"
6 6
7 #include "chrome/browser/google/google_url_tracker.h"
8 #include "chrome/browser/google/google_url_tracker_factory.h" 7 #include "chrome/browser/google/google_url_tracker_factory.h"
9 #include "chrome/browser/google/google_util.h" 8 #include "chrome/browser/google/google_util.h"
9 #include "components/google/core/browser/google_url_tracker.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 namespace google_profile_helper { 12 namespace google_profile_helper {
13 13
14 GURL GetGoogleHomePageURL(Profile* profile) { 14 GURL GetGoogleHomePageURL(Profile* profile) {
15 const GoogleURLTracker* tracker = 15 const GoogleURLTracker* tracker =
16 GoogleURLTrackerFactory::GetForProfile(profile); 16 GoogleURLTrackerFactory::GetForProfile(profile);
17 return tracker ? 17 return tracker ?
18 tracker->google_url() : GURL(GoogleURLTracker::kDefaultGoogleHomepage); 18 tracker->google_url() : GURL(GoogleURLTracker::kDefaultGoogleHomepage);
19 } 19 }
20 20
21 } // namespace google_profile_helper 21 } // namespace google_profile_helper
OLDNEW
« no previous file with comments | « chrome/browser/google/chrome_google_url_tracker_client.cc ('k') | chrome/browser/google/google_url_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698