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

Side by Side Diff: chrome/browser/ui/navigation_correction_tab_observer.cc

Issue 333723002: Componentize google_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + build fix 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/navigation_correction_tab_observer.h" 5 #include "chrome/browser/ui/navigation_correction_tab_observer.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/google/google_profile_helper.h" 10 #include "chrome/browser/google/google_profile_helper.h"
11 #include "chrome/browser/google/google_url_tracker_factory.h" 11 #include "chrome/browser/google/google_url_tracker_factory.h"
12 #include "chrome/browser/google/google_util.h"
13 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
15 #include "chrome/common/render_messages.h" 14 #include "chrome/common/render_messages.h"
15 #include "components/google/core/browser/google_util.h"
16 #include "components/pref_registry/pref_registry_syncable.h" 16 #include "components/pref_registry/pref_registry_syncable.h"
17 #include "content/public/browser/render_frame_host.h" 17 #include "content/public/browser/render_frame_host.h"
18 #include "content/public/browser/render_view_host.h" 18 #include "content/public/browser/render_view_host.h"
19 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
20 #include "google_apis/google_api_keys.h" 20 #include "google_apis/google_api_keys.h"
21 21
22 using content::RenderFrameHost; 22 using content::RenderFrameHost;
23 using content::RenderViewHost; 23 using content::RenderViewHost;
24 using content::WebContents; 24 using content::WebContents;
25 25
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 rfh->Send(new ChromeViewMsg_SetNavigationCorrectionInfo( 95 rfh->Send(new ChromeViewMsg_SetNavigationCorrectionInfo(
96 rfh->GetRoutingID(), 96 rfh->GetRoutingID(),
97 GetNavigationCorrectionURL(), 97 GetNavigationCorrectionURL(),
98 google_util::GetGoogleLocale(g_browser_process->GetApplicationLocale()), 98 google_util::GetGoogleLocale(g_browser_process->GetApplicationLocale()),
99 google_util::GetGoogleCountryCode( 99 google_util::GetGoogleCountryCode(
100 google_profile_helper::GetGoogleHomePageURL(profile_)), 100 google_profile_helper::GetGoogleHomePageURL(profile_)),
101 google_apis::GetAPIKey(), 101 google_apis::GetAPIKey(),
102 google_util::GetGoogleSearchURL( 102 google_util::GetGoogleSearchURL(
103 google_profile_helper::GetGoogleHomePageURL(profile_)))); 103 google_profile_helper::GetGoogleHomePageURL(profile_))));
104 } 104 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698