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

Side by Side Diff: chrome_frame/test/ie_configurator.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
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/test/ie_configurator.h" 5 #include "chrome_frame/test/ie_configurator.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <objbase.h> 8 #include <objbase.h>
9 9
10 #include <ios> 10 #include <ios>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // This 8-byte binary value is the FILETIME of run-once deferral. 177 // This 8-byte binary value is the FILETIME of run-once deferral.
178 const wchar_t* last_shown_timestamp; 178 const wchar_t* last_shown_timestamp;
179 }; 179 };
180 180
181 static const RunOnceValueNames kIE8ValueNames; 181 static const RunOnceValueNames kIE8ValueNames;
182 static const RunOnceValueNames kIE9ValueNames; 182 static const RunOnceValueNames kIE9ValueNames;
183 static const RunOnceValueNames kIE10ValueNames; 183 static const RunOnceValueNames kIE10ValueNames;
184 184
185 static const RunOnceValueNames* RunOnceNamesForVersion(IEVersion ie_version); 185 static const RunOnceValueNames* RunOnceNamesForVersion(IEVersion ie_version);
186 bool IsPerUserSetupComplete(); 186 bool IsPerUserSetupComplete();
187 static string16 GetChromeFrameBHOCLSID(); 187 static base::string16 GetChromeFrameBHOCLSID();
188 static bool IsAddonPromptDisabledForChromeFrame(); 188 static bool IsAddonPromptDisabledForChromeFrame();
189 189
190 const IEVersion ie_version_; 190 const IEVersion ie_version_;
191 const RunOnceValueNames* run_once_value_names_; 191 const RunOnceValueNames* run_once_value_names_;
192 RegistrySetter setter_; 192 RegistrySetter setter_;
193 193
194 DISALLOW_COPY_AND_ASSIGN(ModernIEConfigurator); 194 DISALLOW_COPY_AND_ASSIGN(ModernIEConfigurator);
195 }; 195 };
196 196
197 // RegistrySetter implementation. 197 // RegistrySetter implementation.
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 base::Time time_shown = base::Time::FromFileTime(shown_time); 455 base::Time time_shown = base::Time::FromFileTime(shown_time);
456 base::Time time_completed = base::Time::FromFileTime(completion_time); 456 base::Time time_completed = base::Time::FromFileTime(completion_time);
457 if (time_shown >= time_completed) 457 if (time_shown >= time_completed)
458 return false; 458 return false;
459 459
460 return true; 460 return true;
461 } 461 }
462 462
463 // Returns the path to the IE9 Approved Extensions key for Chrome Frame. 463 // Returns the path to the IE9 Approved Extensions key for Chrome Frame.
464 // static 464 // static
465 string16 ModernIEConfigurator::GetChromeFrameBHOCLSID() { 465 base::string16 ModernIEConfigurator::GetChromeFrameBHOCLSID() {
466 string16 bho_guid(39, L'\0'); 466 base::string16 bho_guid(39, L'\0');
467 int guid_len = StringFromGUID2(CLSID_ChromeFrameBHO, &bho_guid[0], 467 int guid_len = StringFromGUID2(CLSID_ChromeFrameBHO, &bho_guid[0],
468 bho_guid.size()); 468 bho_guid.size());
469 DCHECK_EQ(guid_len, static_cast<int>(bho_guid.size())); 469 DCHECK_EQ(guid_len, static_cast<int>(bho_guid.size()));
470 bho_guid.resize(guid_len - 1); 470 bho_guid.resize(guid_len - 1);
471 return bho_guid; 471 return bho_guid;
472 } 472 }
473 473
474 // Returns true if the add-on enablement prompt is disabled by Group Policy. 474 // Returns true if the add-on enablement prompt is disabled by Group Policy.
475 // static 475 // static
476 bool ModernIEConfigurator::IsAddonPromptDisabledForChromeFrame() { 476 bool ModernIEConfigurator::IsAddonPromptDisabledForChromeFrame() {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 void InstallIEConfigurator() { 589 void InstallIEConfigurator() {
590 IEConfigurator* configurator = CreateConfigurator(); 590 IEConfigurator* configurator = CreateConfigurator();
591 591
592 if (configurator != NULL) { 592 if (configurator != NULL) {
593 testing::UnitTest::GetInstance()->listeners().Append( 593 testing::UnitTest::GetInstance()->listeners().Append(
594 new ConfiguratorDriver(configurator)); 594 new ConfiguratorDriver(configurator));
595 } 595 }
596 } 596 }
597 597
598 } // namespace chrome_frame_test 598 } // namespace chrome_frame_test
OLDNEW
« no previous file with comments | « chrome_frame/test/http_negotiate_unittest.cc ('k') | chrome_frame/test/mock_ie_event_sink_actions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698