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

Unified Diff: chrome/browser/instant/instant_opt_in.cc

Issue 5023001: Handful of related instant changes: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux build Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/instant/instant_opt_in.h ('k') | chrome/browser/instant/promo_counter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_opt_in.cc
diff --git a/chrome/browser/instant/instant_opt_in.cc b/chrome/browser/instant/instant_opt_in.cc
deleted file mode 100644
index 02db5c5cb02a2ef91cb63221b4f10e4e329868cd..0000000000000000000000000000000000000000
--- a/chrome/browser/instant/instant_opt_in.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/instant/instant_opt_in.h"
-
-#include "base/command_line.h"
-#include "chrome/browser/instant/instant_confirm_dialog.h"
-#include "chrome/browser/profile.h"
-#include "chrome/common/chrome_switches.h"
-
-namespace browser {
-
-static bool dialog_shown = false;
-
-bool ShouldShowInstantOptIn(Profile* profile) {
- if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kShowInstantOptIn))
- return false;
-
- // TODO(sky): implement me.
- return !dialog_shown;
-}
-
-void UserPickedInstantOptIn(gfx::NativeWindow parent,
- Profile* profile,
- bool opt_in) {
- // TODO: set pref so don't show opt-in again.
- dialog_shown = true;
- if (opt_in)
- browser::ShowInstantConfirmDialogIfNecessary(parent, profile);
-}
-
-} // namespace browser
« no previous file with comments | « chrome/browser/instant/instant_opt_in.h ('k') | chrome/browser/instant/promo_counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698