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

Unified Diff: chrome_frame/chrome_frame_plugin.h

Issue 858003: First cut of privacy work for GCF. Implements IDeleteBrowsing history and mov... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | chrome_frame/delete_chrome_history.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_plugin.h
===================================================================
--- chrome_frame/chrome_frame_plugin.h (revision 42644)
+++ chrome_frame/chrome_frame_plugin.h (working copy)
@@ -8,6 +8,8 @@
#include "base/ref_counted.h"
#include "base/win_util.h"
#include "chrome_frame/chrome_frame_automation.h"
+#include "chrome/common/chrome_paths.h"
+#include "chrome/common/chrome_paths_internal.h"
#include "chrome_frame/simple_resource_loader.h"
#include "chrome_frame/utils.h"
@@ -35,6 +37,7 @@
END_MSG_MAP()
bool Initialize() {
+ DLOG(INFO) << __FUNCTION__;
DCHECK(!automation_client_.get());
automation_client_ = CreateAutomationClient();
if (!automation_client_.get()) {
@@ -46,6 +49,7 @@
}
void Uninitialize() {
+ DLOG(INFO) << __FUNCTION__;
if (IsValid()) {
automation_client_->Uninitialize();
automation_client_ = NULL;
@@ -59,8 +63,10 @@
// We don't want to do incognito when privileged, since we're
// running in browser chrome or some other privileged context.
bool incognito_mode = !is_privileged_ && incognito;
+ FilePath profile_path;
+ GetProfilePath(profile_name, &profile_path);
return automation_client_->Initialize(this, kCommandExecutionTimeout, true,
- profile_name, extra_chrome_arguments,
+ profile_path, extra_chrome_arguments,
incognito_mode);
}
@@ -211,6 +217,13 @@
}
}
+ virtual void GetProfilePath(const std::wstring& profile_name,
+ FilePath* profile_path) {
+ chrome::GetChromeFrameUserDataDirectory(profile_path);
+ *profile_path = profile_path->Append(profile_name);
+ DLOG(INFO) << __FUNCTION__ << ": " << profile_path->value();
+ }
+
protected:
// Our gateway to chrome land
scoped_refptr<ChromeFrameAutomationClient> automation_client_;
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | chrome_frame/delete_chrome_history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698