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

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

Issue 303233006: Abstract GoogleURLTracker & google_util Profile dependencies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments 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
Index: chrome/browser/google/google_profile_helper.h
diff --git a/chrome/browser/google/google_profile_helper.h b/chrome/browser/google/google_profile_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..14b2aa7ce2c025b63a562e83b0df83422296d7db
--- /dev/null
+++ b/chrome/browser/google/google_profile_helper.h
@@ -0,0 +1,33 @@
+// 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.
+//
+// Provides Google-related information for a given Profile.
Peter Kasting 2014/05/30 20:50:39 I would expand this file comment to say something
+
+#ifndef CHROME_BROWSER_GOOGLE_GOOGLE_PROFILE_HELPER_H__
+#define CHROME_BROWSER_GOOGLE_GOOGLE_PROFILE_HELPER_H__
+
+#include <string>
+
+#include "base/basictypes.h"
+
+class GURL;
+class Profile;
+
+namespace google_profile_helper {
Peter Kasting 2014/05/30 20:50:39 So, how did you end up deciding to put these funct
blundell 2014/06/02 15:42:26 I created the GetGoogleHomePageURL() function sinc
+
+// Returns the Google country code string for the given profile. This will
+// return a valid country code even if |profile| is NULL or a testing profile.
+std::string GetGoogleCountryCode(Profile* profile);
+
+// Returns the Google search URL for the given profile. This will return a
+// valid URL even if |profile| is NULL or a testing profile.
+GURL GetGoogleSearchURL(Profile* profile);
+
+// Returns the current Google homepage URL. This will return a valid URL even if
+// |profile| is NULL or a testing profile.
+GURL GetGoogleHomePageURL(Profile* profile);
+
+} // namespace google_profile_helper
+
+#endif // CHROME_BROWSER_GOOGLE_GOOGLE_PROFILE_HELPER_H__

Powered by Google App Engine
This is Rietveld 408576698