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

Unified Diff: chrome/test/base/testing_browser_process.h

Issue 1803143002: Replace BrowserProces::AddRefModule/RemoveModule by ScopedKeepAlive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/testing_browser_process.h
diff --git a/chrome/test/base/testing_browser_process.h b/chrome/test/base/testing_browser_process.h
index fbb8983b508e20d955dd9a11ad5047ccad9f99f0..4b6904352f4905996c9336f0b8b525bb15bb2bca 100644
--- a/chrome/test/base/testing_browser_process.h
+++ b/chrome/test/base/testing_browser_process.h
@@ -92,8 +92,8 @@ class TestingBrowserProcess : public BrowserProcess {
void CreateDevToolsHttpProtocolHandler(const std::string& ip,
uint16_t port) override;
void CreateDevToolsAutoOpener() override;
- unsigned int AddRefModule() override;
- unsigned int ReleaseModule() override;
+ void Pin() override;
+ void Unpin() override;
bool IsShuttingDown() override;
printing::PrintJobManager* print_job_manager() override;
printing::PrintPreviewDialogController* print_preview_dialog_controller()
@@ -141,7 +141,7 @@ class TestingBrowserProcess : public BrowserProcess {
void SetRapporService(rappor::RapporService* rappor_service);
void ShutdownBrowserPolicyConnector();
- unsigned int module_ref_count() const { return module_ref_count_; }
+ bool is_pinned() const { return is_pinned_; }
private:
// See CreateInstance() and DestoryInstance() above.
@@ -149,7 +149,7 @@ class TestingBrowserProcess : public BrowserProcess {
~TestingBrowserProcess() override;
scoped_ptr<content::NotificationService> notification_service_;
- unsigned int module_ref_count_;
+ bool is_pinned_;
std::string app_locale_;
scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_;

Powered by Google App Engine
This is Rietveld 408576698