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

Side by Side Diff: chrome/browser/extensions/bundle_installer.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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/extensions/bundle_installer.h" 5 #include "chrome/browser/extensions/bundle_installer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 208 }
209 209
210 void BundleInstaller::ParseManifests() { 210 void BundleInstaller::ParseManifests() {
211 if (items_.empty()) { 211 if (items_.empty()) {
212 ReportCanceled(false); 212 ReportCanceled(false);
213 return; 213 return;
214 } 214 }
215 215
216 for (ItemMap::iterator i = items_.begin(); i != items_.end(); ++i) { 216 for (ItemMap::iterator i = items_.begin(); i != items_.end(); ++i) {
217 scoped_refptr<WebstoreInstallHelper> helper = new WebstoreInstallHelper( 217 scoped_refptr<WebstoreInstallHelper> helper = new WebstoreInstallHelper(
218 this, i->first, i->second.manifest, "", GURL(), NULL); 218 this, i->first, i->second.manifest, std::string(), GURL(), NULL);
219 helper->Start(); 219 helper->Start();
220 } 220 }
221 } 221 }
222 222
223 void BundleInstaller::ReportApproved() { 223 void BundleInstaller::ReportApproved() {
224 if (delegate_) 224 if (delegate_)
225 delegate_->OnBundleInstallApproved(); 225 delegate_->OnBundleInstallApproved();
226 226
227 Release(); // Balanced in PromptForApproval(). 227 Release(); // Balanced in PromptForApproval().
228 } 228 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 void BundleInstaller::OnBrowserAdded(Browser* browser) {} 347 void BundleInstaller::OnBrowserAdded(Browser* browser) {}
348 348
349 void BundleInstaller::OnBrowserRemoved(Browser* browser) { 349 void BundleInstaller::OnBrowserRemoved(Browser* browser) {
350 if (browser_ == browser) 350 if (browser_ == browser)
351 browser_ = NULL; 351 browser_ = NULL;
352 } 352 }
353 353
354 void BundleInstaller::OnBrowserSetLastActive(Browser* browser) {} 354 void BundleInstaller::OnBrowserSetLastActive(Browser* browser) {}
355 355
356 } // namespace extensions 356 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698