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

Side by Side Diff: chrome_frame/utils.cc

Issue 113143006: Add base:: to string16 in chrome_frame/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « chrome_frame/utils.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_frame/utils.h" 5 #include "chrome_frame/utils.h"
6 6
7 #include <atlsafe.h> 7 #include <atlsafe.h>
8 #include <atlsecurity.h> 8 #include <atlsecurity.h>
9 #include <htiframe.h> 9 #include <htiframe.h>
10 #include <mshtml.h> 10 #include <mshtml.h>
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 } 292 }
293 293
294 return E_FAIL; 294 return E_FAIL;
295 } 295 }
296 296
297 void DisplayVersionMismatchWarning(HWND parent, 297 void DisplayVersionMismatchWarning(HWND parent,
298 const std::string& server_version) { 298 const std::string& server_version) {
299 // Obtain the current module version. 299 // Obtain the current module version.
300 scoped_ptr<FileVersionInfo> module_version_info( 300 scoped_ptr<FileVersionInfo> module_version_info(
301 FileVersionInfo::CreateFileVersionInfoForCurrentModule()); 301 FileVersionInfo::CreateFileVersionInfoForCurrentModule());
302 string16 version_string(module_version_info->file_version()); 302 base::string16 version_string(module_version_info->file_version());
303 std::wstring wide_server_version; 303 std::wstring wide_server_version;
304 if (server_version.empty()) { 304 if (server_version.empty()) {
305 wide_server_version = SimpleResourceLoader::Get(IDS_VERSIONUNKNOWN); 305 wide_server_version = SimpleResourceLoader::Get(IDS_VERSIONUNKNOWN);
306 } else { 306 } else {
307 wide_server_version = ASCIIToWide(server_version); 307 wide_server_version = ASCIIToWide(server_version);
308 } 308 }
309 std::wstring title = SimpleResourceLoader::Get(IDS_VERSIONMISMATCH_HEADER); 309 std::wstring title = SimpleResourceLoader::Get(IDS_VERSIONMISMATCH_HEADER);
310 std::wstring message; 310 std::wstring message;
311 base::SStringPrintf(&message, 311 base::SStringPrintf(&message,
312 SimpleResourceLoader::Get(IDS_VERSIONMISMATCH).c_str(), 312 SimpleResourceLoader::Get(IDS_VERSIONMISMATCH).c_str(),
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 735
736 if (render_type_for_url_holder.ListMatches(url)) { 736 if (render_type_for_url_holder.ListMatches(url)) {
737 renderer_type = render_in_cf_by_default ? 737 renderer_type = render_in_cf_by_default ?
738 RENDERER_TYPE_UNDETERMINED : 738 RENDERER_TYPE_UNDETERMINED :
739 RENDERER_TYPE_CHROME_OPT_IN_URL; 739 RENDERER_TYPE_CHROME_OPT_IN_URL;
740 } 740 }
741 741
742 return renderer_type; 742 return renderer_type;
743 } 743 }
744 744
745 bool ShouldRemoveUAForUrl(const string16& url) { 745 bool ShouldRemoveUAForUrl(const base::string16& url) {
746 // TODO(robertshield): Wire up the stuff in PolicySettings here so the value 746 // TODO(robertshield): Wire up the stuff in PolicySettings here so the value
747 // can be specified via group policy. 747 // can be specified via group policy.
748 // TODO(robertshield): Add a default list of exclusions here for site with 748 // TODO(robertshield): Add a default list of exclusions here for site with
749 // known bad UA parsing. 749 // known bad UA parsing.
750 RegistryListPreferencesHolder& user_agent_filter_holder = 750 RegistryListPreferencesHolder& user_agent_filter_holder =
751 g_user_agent_filter_holder.Get(); 751 g_user_agent_filter_holder.Get();
752 if (!user_agent_filter_holder.Valid()) { 752 if (!user_agent_filter_holder.Valid()) {
753 user_agent_filter_holder.Init(HKEY_CURRENT_USER, 753 user_agent_filter_holder.Init(HKEY_CURRENT_USER,
754 kChromeFrameConfigKey, 754 kChromeFrameConfigKey,
755 kExcludeUAFromDomainList); 755 kExcludeUAFromDomainList);
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
1625 ret = InternetSetOption(NULL, connection_options[option_index], 1625 ret = InternetSetOption(NULL, connection_options[option_index],
1626 &connections, connection_value_size); 1626 &connections, connection_value_size);
1627 if (!ret) { 1627 if (!ret) {
1628 return false; 1628 return false;
1629 } 1629 }
1630 } 1630 }
1631 wininet_connection_count_updated = true; 1631 wininet_connection_count_updated = true;
1632 return true; 1632 return true;
1633 } 1633 }
1634 1634
1635 void GetChromeFrameProfilePath(const string16& profile_name, 1635 void GetChromeFrameProfilePath(const base::string16& profile_name,
1636 base::FilePath* profile_path) { 1636 base::FilePath* profile_path) {
1637 chrome::GetChromeFrameUserDataDirectory(profile_path); 1637 chrome::GetChromeFrameUserDataDirectory(profile_path);
1638 *profile_path = profile_path->Append(profile_name); 1638 *profile_path = profile_path->Append(profile_name);
1639 DVLOG(1) << __FUNCTION__ << ": " << profile_path->value(); 1639 DVLOG(1) << __FUNCTION__ << ": " << profile_path->value();
1640 } 1640 }
OLDNEW
« no previous file with comments | « chrome_frame/utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698