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

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

Issue 104493005: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 12 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/webstore_standalone_installer.h" 5 #include "chrome/browser/extensions/webstore_standalone_installer.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/extensions/crx_installer.h" 8 #include "chrome/browser/extensions/crx_installer.h"
9 #include "chrome/browser/extensions/extension_install_prompt.h" 9 #include "chrome/browser/extensions/extension_install_prompt.h"
10 #include "chrome/browser/extensions/extension_install_ui.h" 10 #include "chrome/browser/extensions/extension_install_ui.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 approval->use_app_installed_bubble = ShouldShowAppInstalledBubble(); 100 approval->use_app_installed_bubble = ShouldShowAppInstalledBubble();
101 approval->installing_icon = gfx::ImageSkia::CreateFrom1xBitmap(icon_); 101 approval->installing_icon = gfx::ImageSkia::CreateFrom1xBitmap(icon_);
102 return approval.Pass(); 102 return approval.Pass();
103 } 103 }
104 104
105 void WebstoreStandaloneInstaller::OnWebstoreRequestFailure() { 105 void WebstoreStandaloneInstaller::OnWebstoreRequestFailure() {
106 CompleteInstall(kWebstoreRequestError); 106 CompleteInstall(kWebstoreRequestError);
107 } 107 }
108 108
109 void WebstoreStandaloneInstaller::OnWebstoreResponseParseSuccess( 109 void WebstoreStandaloneInstaller::OnWebstoreResponseParseSuccess(
110 scoped_ptr<DictionaryValue> webstore_data) { 110 scoped_ptr<base::DictionaryValue> webstore_data) {
111 if (!CheckRequestorAlive()) { 111 if (!CheckRequestorAlive()) {
112 CompleteInstall(std::string()); 112 CompleteInstall(std::string());
113 return; 113 return;
114 } 114 }
115 115
116 std::string error; 116 std::string error;
117 117
118 if (!CheckInlineInstallPermitted(*webstore_data, &error)) { 118 if (!CheckInlineInstallPermitted(*webstore_data, &error)) {
119 CompleteInstall(error); 119 CompleteInstall(error);
120 return; 120 return;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // Balanced in InstallUIAbort or indirectly in InstallUIProceed via 305 // Balanced in InstallUIAbort or indirectly in InstallUIProceed via
306 // OnExtensionInstallSuccess or OnExtensionInstallFailure. 306 // OnExtensionInstallSuccess or OnExtensionInstallFailure.
307 AddRef(); 307 AddRef();
308 308
309 install_ui_ = CreateInstallUI(); 309 install_ui_ = CreateInstallUI();
310 install_ui_->ConfirmStandaloneInstall( 310 install_ui_->ConfirmStandaloneInstall(
311 this, localized_extension_for_display_.get(), &icon_, *install_prompt_); 311 this, localized_extension_for_display_.get(), &icon_, *install_prompt_);
312 } 312 }
313 313
314 } // namespace extensions 314 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_standalone_installer.h ('k') | chrome/browser/extensions/window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698