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

Side by Side Diff: chrome/installer/util/chrome_frame_distribution.cc

Issue 360059: Remove build time differences between Chrome Frame and Google Chrome in the... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // This file defines a specific implementation of BrowserDistribution class for 5 // This file defines a specific implementation of BrowserDistribution class for
6 // Chrome Frame. It overrides the bare minimum of methods necessary to get a 6 // Chrome Frame. It overrides the bare minimum of methods necessary to get a
7 // Chrome Frame installer that does not interact with Google Chrome or 7 // Chrome Frame installer that does not interact with Google Chrome or
8 // Chromium installations. 8 // Chromium installations.
9 9
10 #include "chrome/installer/util/chrome_frame_distribution.h" 10 #include "chrome/installer/util/chrome_frame_distribution.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 std::wstring ChromeFrameDistribution::GetPublisherName() { 46 std::wstring ChromeFrameDistribution::GetPublisherName() {
47 const std::wstring& publisher_name = 47 const std::wstring& publisher_name =
48 installer_util::GetLocalizedString(IDS_ABOUT_VERSION_COMPANY_NAME_BASE); 48 installer_util::GetLocalizedString(IDS_ABOUT_VERSION_COMPANY_NAME_BASE);
49 return publisher_name; 49 return publisher_name;
50 } 50 }
51 51
52 std::wstring ChromeFrameDistribution::GetAppDescription() { 52 std::wstring ChromeFrameDistribution::GetAppDescription() {
53 return L"Chrome in a Frame."; 53 return L"Chrome in a Frame.";
54 } 54 }
55 55
56 std::string ChromeFrameDistribution::GetSafeBrowsingName() {
57 return "googlechromeframe";
58 }
59
56 std::wstring ChromeFrameDistribution::GetStateKey() { 60 std::wstring ChromeFrameDistribution::GetStateKey() {
57 std::wstring key(google_update::kRegPathClientState); 61 std::wstring key(google_update::kRegPathClientState);
58 key.append(L"\\"); 62 key.append(L"\\");
59 key.append(kChromeFrameGuid); 63 key.append(kChromeFrameGuid);
60 return key; 64 return key;
61 } 65 }
62 66
63 std::wstring ChromeFrameDistribution::GetStateMediumKey() { 67 std::wstring ChromeFrameDistribution::GetStateMediumKey() {
64 std::wstring key(google_update::kRegPathClientStateMedium); 68 std::wstring key(google_update::kRegPathClientStateMedium);
65 key.append(L"\\"); 69 key.append(L"\\");
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 key.DeleteValue(google_update::kRegApField); 122 key.DeleteValue(google_update::kRegApField);
119 } else { 123 } else {
120 size_t pos = ap_key_value.find(ASCIIToWide(kMagicSuffix)); 124 size_t pos = ap_key_value.find(ASCIIToWide(kMagicSuffix));
121 if (pos != std::wstring::npos) { 125 if (pos != std::wstring::npos) {
122 ap_key_value.erase(pos, strlen(kMagicSuffix)); 126 ap_key_value.erase(pos, strlen(kMagicSuffix));
123 key.WriteValue(google_update::kRegApField, ap_key_value.c_str()); 127 key.WriteValue(google_update::kRegApField, ap_key_value.c_str());
124 } 128 }
125 } 129 }
126 } 130 }
127 } 131 }
OLDNEW
« no previous file with comments | « chrome/installer/util/chrome_frame_distribution.h ('k') | chrome/installer/util/google_chrome_distribution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698