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

Unified Diff: chrome/browser/google/google_profile_helper.cc

Issue 303233006: Abstract GoogleURLTracker & google_util Profile dependencies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix and rebase Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/google/google_profile_helper.h ('k') | chrome/browser/google/google_url_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google/google_profile_helper.cc
diff --git a/chrome/browser/google/google_profile_helper.cc b/chrome/browser/google/google_profile_helper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0098275d6f8b146c4ffb797b1b0b73c658e0c904
--- /dev/null
+++ b/chrome/browser/google/google_profile_helper.cc
@@ -0,0 +1,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.h"
+#include "chrome/browser/google/google_url_tracker_factory.h"
+#include "chrome/browser/google/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
« no previous file with comments | « chrome/browser/google/google_profile_helper.h ('k') | chrome/browser/google/google_url_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698