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

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

Issue 271793003: components: Extract pref_registry component out of user_prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 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/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/google/google_util.h" 9 #include "chrome/browser/google/google_util.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
12 #include "chrome/common/render_messages.h" 12 #include "chrome/common/render_messages.h"
13 #include "components/user_prefs/pref_registry_syncable.h" 13 #include "components/pref_registry/pref_registry_syncable.h"
14 #include "content/public/browser/notification_service.h" 14 #include "content/public/browser/notification_service.h"
15 #include "content/public/browser/render_frame_host.h" 15 #include "content/public/browser/render_frame_host.h"
16 #include "content/public/browser/render_view_host.h" 16 #include "content/public/browser/render_view_host.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "google_apis/google_api_keys.h" 18 #include "google_apis/google_api_keys.h"
19 19
20 using content::RenderFrameHost; 20 using content::RenderFrameHost;
21 using content::RenderViewHost; 21 using content::RenderViewHost;
22 using content::WebContents; 22 using content::WebContents;
23 23
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 void NavigationCorrectionTabObserver::UpdateNavigationCorrectionInfo( 91 void NavigationCorrectionTabObserver::UpdateNavigationCorrectionInfo(
92 RenderViewHost* rvh) { 92 RenderViewHost* rvh) {
93 RenderFrameHost* rfh = rvh->GetMainFrame(); 93 RenderFrameHost* rfh = rvh->GetMainFrame();
94 rfh->Send(new ChromeViewMsg_SetNavigationCorrectionInfo( 94 rfh->Send(new ChromeViewMsg_SetNavigationCorrectionInfo(
95 rfh->GetRoutingID(), GetNavigationCorrectionURL(), 95 rfh->GetRoutingID(), GetNavigationCorrectionURL(),
96 google_util::GetGoogleLocale(), 96 google_util::GetGoogleLocale(),
97 google_util::GetGoogleCountryCode(profile_), google_apis::GetAPIKey(), 97 google_util::GetGoogleCountryCode(profile_), google_apis::GetAPIKey(),
98 google_util::GetGoogleSearchURL(profile_))); 98 google_util::GetGoogleSearchURL(profile_)));
99 } 99 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gesture_prefs_observer_factory_aura.cc ('k') | chrome/browser/ui/network_profile_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698