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

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #include "chrome/common/json_pref_store.h" 94 #include "chrome/common/json_pref_store.h"
95 #include "chrome/common/pref_names.h" 95 #include "chrome/common/pref_names.h"
96 #include "chrome/common/render_messages.h" 96 #include "chrome/common/render_messages.h"
97 #include "chrome/common/spellcheck_messages.h" 97 #include "chrome/common/spellcheck_messages.h"
98 #include "chrome/common/url_constants.h" 98 #include "chrome/common/url_constants.h"
99 #include "content/browser/appcache/chrome_appcache_service.h" 99 #include "content/browser/appcache/chrome_appcache_service.h"
100 #include "content/browser/chrome_blob_storage_context.h" 100 #include "content/browser/chrome_blob_storage_context.h"
101 #include "content/browser/file_system/browser_file_system_helper.h" 101 #include "content/browser/file_system/browser_file_system_helper.h"
102 #include "content/browser/host_zoom_map.h" 102 #include "content/browser/host_zoom_map.h"
103 #include "content/browser/in_process_webkit/webkit_context.h" 103 #include "content/browser/in_process_webkit/webkit_context.h"
104 #include "content/browser/renderer_host/render_process_host.h"
105 #include "content/browser/speech/speech_input_manager.h" 104 #include "content/browser/speech/speech_input_manager.h"
106 #include "content/browser/ssl/ssl_host_state.h" 105 #include "content/browser/ssl/ssl_host_state.h"
107 #include "content/browser/user_metrics.h" 106 #include "content/browser/user_metrics.h"
108 #include "content/public/browser/browser_thread.h" 107 #include "content/public/browser/browser_thread.h"
109 #include "content/public/browser/notification_service.h" 108 #include "content/public/browser/notification_service.h"
109 #include "content/public/browser/render_process_host.h"
110 #include "grit/locale_settings.h" 110 #include "grit/locale_settings.h"
111 #include "net/base/transport_security_state.h" 111 #include "net/base/transport_security_state.h"
112 #include "net/http/http_server_properties.h" 112 #include "net/http/http_server_properties.h"
113 #include "webkit/database/database_tracker.h" 113 #include "webkit/database/database_tracker.h"
114 #include "webkit/quota/quota_manager.h" 114 #include "webkit/quota/quota_manager.h"
115 115
116 #if defined(OS_WIN) 116 #if defined(OS_WIN)
117 #include "chrome/browser/instant/promo_counter.h" 117 #include "chrome/browser/instant/promo_counter.h"
118 #include "chrome/browser/password_manager/password_store_win.h" 118 #include "chrome/browser/password_manager/password_store_win.h"
119 #include "chrome/installer/util/install_util.h" 119 #include "chrome/installer/util/install_util.h"
(...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 void ProfileImpl::UpdateProfileUserNameCache() { 1600 void ProfileImpl::UpdateProfileUserNameCache() {
1601 ProfileManager* profile_manager = g_browser_process->profile_manager(); 1601 ProfileManager* profile_manager = g_browser_process->profile_manager();
1602 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); 1602 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache();
1603 size_t index = cache.GetIndexOfProfileWithPath(GetPath()); 1603 size_t index = cache.GetIndexOfProfileWithPath(GetPath());
1604 if (index != std::string::npos) { 1604 if (index != std::string::npos) {
1605 std::string user_name = 1605 std::string user_name =
1606 GetPrefs()->GetString(prefs::kGoogleServicesUsername); 1606 GetPrefs()->GetString(prefs::kGoogleServicesUsername);
1607 cache.SetUserNameOfProfileAtIndex(index, UTF8ToUTF16(user_name)); 1607 cache.SetUserNameOfProfileAtIndex(index, UTF8ToUTF16(user_name));
1608 } 1608 }
1609 } 1609 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698